Skip to content

Commit 76e72b2

Browse files
keirsalteregoOM
andauthored
ci: SHA-pin actions in update-contributors workflow (#5)
The contributor-update workflow runs with contents: write and a PAT, but pinned actions/checkout and actions/setup-python to mutable tags (@v4, @v5). A retag or compromise of either action would run attacker code with write access to this org-profile repo. Pin both to the full commit SHAs already trusted in the vyrox python-ci workflow. Co-authored-by: OM <[email protected]>
1 parent d2ec749 commit 76e72b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

workflows/update-contributors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
permissions:
1616
contents: write
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1919
with:
2020
token: ${{ secrets.GH_TOKEN }}
2121

22-
- uses: actions/setup-python@v5
22+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.4.0
2323
with:
2424
python-version: '3.11'
2525

0 commit comments

Comments
 (0)