Skip to content

Commit 500c96b

Browse files
security: pin all actions to commit SHAs (SECCMP-1797)
Pin actions/checkout@v4, actions/setup-python@v4, and actions/github-script@v7 to immutable commit SHAs to prevent supply chain attacks. - actions/checkout -> 34e114876b0b11c390a56381ad16ebd13914f8d5 - actions/setup-python -> 7f4fc3e22c37d6ff65e88745f38bd3157c663f7c - actions/github-script -> f28e40c7f34bde8b3046d885e986cb6290c5673b Note: reverts accidental regression introduced in prior SHA-pin attempt that inadvertently reverted pull_request_target trigger, refs/pull/N/head checkout ref, pull-requests: read permission, and --files-from-stdin argument safety. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dc32a2b commit 500c96b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/copyright-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828

2929
steps:
3030
- name: Checkout PR head
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3232
with:
3333
ref: refs/pull/${{ github.event.pull_request.number }}/head
3434
path: target-repo
3535
persist-credentials: false
3636

3737
- name: Checkout pr-workflows repo
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3939
with:
4040
repository: ${{ github.repository_owner }}/pr-workflows
4141
ref: main
@@ -61,7 +61,7 @@ jobs:
6161
echo "config-file=$cfg" >> $GITHUB_OUTPUT
6262
6363
- name: Set up Python
64-
uses: actions/setup-python@v4
64+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
6565
with:
6666
python-version: '3.11'
6767

@@ -112,7 +112,7 @@ jobs:
112112
# pull_request_target (org ruleset): token is read-only for the triggering repo —
113113
# createComment/updateComment will 403. Skip and rely on Job Summary instead.
114114
if: always() && steps.changed-files.outputs.skip-validation != 'true' && github.event_name == 'workflow_call'
115-
uses: actions/github-script@v7
115+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
116116
env:
117117
VALIDATION_STATUS: ${{ steps.validate.outputs.status }}
118118
with:

0 commit comments

Comments
 (0)