Skip to content

Commit d0f4669

Browse files
committed
fix: Pin actions to SHA and add permissions blocks
1 parent 90bceed commit d0f4669

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.github/workflows/changelog-preview.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- reopened
88
- edited
99
- labeled
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
1014
jobs:
1115
changelog-preview:
1216
uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Check out current commit
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
2121
- name: Set up Node
2222
uses: actions/setup-node@v4
2323
with:
@@ -179,7 +179,7 @@ jobs:
179179
ln -sf python3 /usr/bin/python
180180
181181
- name: Check out current commit
182-
uses: actions/checkout@v4
182+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
183183

184184
# Note: On alpine images, this does nothing
185185
# The node version will be the one that is installed in the image
@@ -280,7 +280,7 @@ jobs:
280280
runs-on: ubuntu-latest
281281
steps:
282282
- name: Check out current commit
283-
uses: actions/checkout@v4
283+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
284284
- name: Set up Node
285285
uses: actions/setup-node@v4
286286
with:
@@ -327,7 +327,7 @@ jobs:
327327
node: [18, 20, 22, 24]
328328
steps:
329329
- name: Check out current commit
330-
uses: actions/checkout@v4
330+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
331331
- name: Set up Node
332332
uses: actions/setup-node@v4
333333
with:

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,27 @@ on:
1111
merge_target:
1212
description: Target branch to merge into
1313
required: false
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
1418
jobs:
1519
release:
1620
runs-on: ubuntu-latest
1721
name: Release a new version
1822
steps:
1923
- name: Get auth token
2024
id: token
21-
uses: actions/create-github-app-token@v1
25+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v2
2226
with:
2327
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2428
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
25-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
2630
with:
2731
token: ${{ steps.token.outputs.token }}
2832
fetch-depth: 0
2933
- name: Prepare release
30-
uses: getsentry/craft@v2
34+
uses: getsentry/craft@39ee616a6a58dc64797feecb145d66770492b66c # v2
3135
env:
3236
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3337
with:

0 commit comments

Comments
 (0)