Skip to content

Commit 21671df

Browse files
chore: pin GitHub Actions to full-length commit SHAs (#44)
* chore: pin GitHub Actions to full-length commit SHAs * add permissions for danger workflow * danger perms fix --------- Co-authored-by: geoffg-sentry <165922362+geoffg-sentry@users.noreply.github.com>
1 parent 2f78e71 commit 21671df

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
name: Build
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2020

2121
- run: corepack enable
22-
- uses: actions/setup-node@v4
22+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2323
with:
2424
node-version: 20
2525
cache: 'yarn'
@@ -35,7 +35,7 @@ jobs:
3535
run: yarn build:tarball
3636

3737
- name: Archive Artifacts
38-
uses: actions/upload-artifact@v4
38+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
3939
with:
4040
name: ${{ github.sha }}
4141
path: |
@@ -45,10 +45,10 @@ jobs:
4545
name: Test
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4949

5050
- run: corepack enable
51-
- uses: actions/setup-node@v4
51+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
5252
with:
5353
node-version: 20
5454
cache: 'yarn'

.github/workflows/danger.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ on:
66

77
jobs:
88
danger:
9-
uses: getsentry/github-workflows/.github/workflows/danger.yml@v2
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
statuses: write
13+
uses: getsentry/github-workflows/.github/workflows/danger.yml@1949ea01ec2da6139d1bcc306c372e6aea76fb72 # v2

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2525
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
2626
- name: Check out current commit (${{ github.sha }})
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2828
with:
2929
token: ${{ steps.token.outputs.token }}
3030
fetch-depth: 0
3131
- run: corepack enable
32-
- uses: actions/setup-node@v4
32+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
3333
with:
3434
node-version: 18
3535
cache: 'yarn'
3636
cache-dependency-path: yarn.lock
3737
- name: Prepare release
38-
uses: getsentry/action-prepare-release@v1
38+
uses: getsentry/action-prepare-release@c8e1c2009ab08259029170132c384f03c1064c0e # v1
3939
env:
4040
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
4141
with:

0 commit comments

Comments
 (0)