hard20 pts · first answer countsci-cddevsecopssupply-chain-security
Risky GitHub Actions trigger
A public repo has this workflow. Why is it dangerous?
on: pull_request_target
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: npm ci && npm test
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}