Material Change - new dependabot finding #981
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Demo vulnerable workflow | |
on: | |
issues: | |
types: [opened] | |
env: | |
# Environment variable for demonstration purposes | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
vuln_job: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout used for demonstration purposes | |
- uses: actions/checkout@v2 | |
- run: | | |
echo "ISSUE TITLE: ${{github.event.issue.title}}" | |
echo "ISSUE DESCRIPTION: ${{github.event.issue.body}}" | |
- run: | | |
curl -X POST -H "Authorization: Token ${{ secrets.BOT_TOKEN }}" -d '{"labels": ["New Issue"]}' ${{ github.event.issue.url }}/labels |