Skip to content

Commit 6a552ba

Browse files
chore: pin GitHub Actions to commit SHAs (#184)
* chore: pin actions to SHA in .github/workflows/check_cla_signed.yml * chore: pin actions to SHA in .github/workflows/check_is_bot.yml * chore: pin actions to SHA in .github/workflows/internal_vs_external.yml * chore: pin actions to SHA in .github/workflows/python_lint_test.yml * chore: pin actions to SHA in .github/workflows/repo_policies.yml
1 parent a947962 commit 6a552ba

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/check_cla_signed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1616
with:
1717
repository: dfinity/public-workflows
1818
- name: Python Setup

.github/workflows/check_is_bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
is_bot: ${{ steps.check-is-bot.outputs.is_bot}}
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2222
with:
2323
repository: 'dfinity/public-workflows'
2424

.github/workflows/internal_vs_external.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
EXTERNAL_CONTRIB_BLACKLIST_PATH: "repo/.github/repo_policies/EXTERNAL_CONTRIB_BLACKLIST"
9393

9494
- name: Close PR
95-
uses: actions/github-script@v7
95+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
9696
if: ${{ !cancelled() && steps.check_external_changes.conclusion == 'failure' }}
9797
with:
9898
script: |
@@ -117,14 +117,14 @@ jobs:
117117
if: github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
118118
steps:
119119
- name: Create GitHub App Token
120-
uses: actions/create-github-app-token@v1
120+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
121121
id: app-token
122122
with:
123123
app-id: ${{ vars.CLA_BOT_APP_ID }}
124124
private-key: ${{ secrets.CLA_BOT_PRIVATE_KEY }}
125125

126126
- name: Checkout
127-
uses: actions/checkout@v4
127+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
128128
with:
129129
repository: 'dfinity/public-workflows'
130130

@@ -157,7 +157,7 @@ jobs:
157157
— The DFINITY Foundation
158158
159159
- name: Add Label
160-
uses: actions/github-script@v6
160+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
161161
with:
162162
github-token: ${{ steps.app-token.outputs.token }}
163163
script: |
@@ -182,6 +182,6 @@ jobs:
182182
PR_ID: ${{ github.event.number }}
183183

184184
check-repo-policies:
185-
uses: dfinity/public-workflows/.github/workflows/repo_policies.yml@main
185+
uses: dfinity/public-workflows/.github/workflows/repo_policies.yml@a947962e6f00131cda27070b41e8e3a629f051c6 # main
186186
secrets: inherit
187187

.github/workflows/python_lint_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1919

2020
- name: Python Setup
2121
uses: ./.github/workflows/python-setup
@@ -30,7 +30,7 @@ jobs:
3030
flake8 reusable_workflows/
3131
3232
- name: Create GitHub App Token
33-
uses: actions/create-github-app-token@v1
33+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
3434
id: app-token
3535
with:
3636
app-id: ${{ vars.CLA_BOT_APP_ID }}

.github/workflows/repo_policies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
check-is-bot:
10-
uses: dfinity/public-workflows/.github/workflows/check_is_bot.yml@main
10+
uses: dfinity/public-workflows/.github/workflows/check_is_bot.yml@a947962e6f00131cda27070b41e8e3a629f051c6 # main
1111
secrets: inherit
1212

1313
check-bot-policies:
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
# First check out code from public-workflows
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2222
with:
2323
repository: dfinity/public-workflows
2424
path: public-workflows

0 commit comments

Comments
 (0)