Skip to content

Commit 109b8e2

Browse files
authored
chore: pin GitHub Actions to full-length commit SHAs (#1244)
1 parent 6d63012 commit 109b8e2

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
APPLE_CERT_PATH: /tmp/certs.p12
2121
APPLE_API_KEY_PATH: /tmp/apple_key.json
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2424
- name: Set up Node
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2626
with:
2727
node-version-file: 'package.json'
2828
cache: 'yarn'
@@ -42,7 +42,7 @@ jobs:
4242
echo "$APPLE_CERT_DATA" | base64 --decode > ${{ env.APPLE_CERT_PATH }}
4343
echo "$APPLE_API_KEY" | base64 --decode > ${{ env.APPLE_API_KEY_PATH }}
4444
- name: Fossilize Cache
45-
uses: actions/cache@v4
45+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
4646
with:
4747
key: yarn-${{ hashFiles('yarn.lock') }}
4848
restore-keys: yarn-
@@ -60,7 +60,7 @@ jobs:
6060
- name: Pack
6161
run: yarn pack
6262
- name: Archive Artifacts
63-
uses: actions/upload-artifact@v4
63+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
6464
with:
6565
name: ${{ github.sha }}
6666
if-no-files-found: error
@@ -74,9 +74,9 @@ jobs:
7474
needs: job_build
7575
runs-on: ubuntu-latest
7676
steps:
77-
- uses: actions/checkout@v4
77+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7878
- name: Set up Node
79-
uses: actions/setup-node@v4
79+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
8080
with:
8181
node-version-file: 'package.json'
8282
cache: 'yarn'
@@ -96,9 +96,9 @@ jobs:
9696
- ubuntu-latest
9797
- macos-15 # We need to use macos-15 to test with Xcode 16
9898
steps:
99-
- uses: actions/checkout@v4
99+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
100100
- name: Set up Node
101-
uses: actions/setup-node@v4
101+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
102102
with:
103103
node-version-file: 'package.json'
104104
node-version: ${{ matrix.node }}
@@ -146,9 +146,9 @@ jobs:
146146
outputs:
147147
wizards: ${{ steps.generate-matrix.outputs.wizards }}
148148
steps:
149-
- uses: actions/checkout@v4
149+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
150150
- name: Setup Node
151-
uses: actions/setup-node@v4
151+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
152152
with:
153153
node-version: 22
154154
cache: 'yarn'
@@ -176,13 +176,13 @@ jobs:
176176
SENTRY_TEST_ORG: 'sentry-javascript-sdks'
177177
SENTRY_TEST_PROJECT: 'sentry-wizard-e2e-tests'
178178
steps:
179-
- uses: actions/checkout@v4
179+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
180180
- name: Setup pnpm
181181
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # pin@v4.2.0
182182
with:
183183
version: 10
184184
- name: Setup Node
185-
uses: actions/setup-node@v4
185+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
186186
with:
187187
node-version: 22
188188
cache: 'yarn'
@@ -200,7 +200,7 @@ jobs:
200200
- name: Install dependencies with yarn
201201
run: yarn install --frozen-lockfile
202202
- name: Download built binaries from build job
203-
uses: actions/download-artifact@v4
203+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
204204
with:
205205
name: ${{ github.sha }}
206206
- # This debug step is left-in on purpose, as it helps debug test failures of

.github/workflows/changelog-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ permissions:
1111

1212
jobs:
1313
changelog-preview:
14-
uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2
14+
uses: getsentry/craft/.github/workflows/changelog-preview.yml@f4889d04564e47311038ecb6b910fef6b6cf1363 # v2
1515
secrets: inherit

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141

4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@v2
44+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
4545

4646
# Initializes the CodeQL tools for scanning.
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v1
48+
uses: github/codeql-action/init@2adeade71c5a811210de40b090a358ed9581536c # v1
4949
with:
5050
languages: ${{ matrix.language }}
5151
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v1
59+
uses: github/codeql-action/autobuild@2adeade71c5a811210de40b090a358ed9581536c # v1
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v1
73+
uses: github/codeql-action/analyze@2adeade71c5a811210de40b090a358ed9581536c # v1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
3232
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
3434
with:
3535
token: ${{ steps.token.outputs.token }}
3636
fetch-depth: 0

0 commit comments

Comments
 (0)