Skip to content

Commit a24ea4a

Browse files
committed
fix: Pin actions to SHA and add permissions blocks
1 parent 7e1521e commit a24ea4a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
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/release-ghcr-version-tag.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [prereleased, released]
66

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
release-ghcr-version-tag:
913
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,27 @@ on:
1010
required: false
1111
schedule:
1212
- cron: "0 17 15 * *"
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
1317
jobs:
1418
release:
1519
runs-on: ubuntu-latest
1620
name: Release a new version
1721
steps:
1822
- name: Get auth token
1923
id: token
20-
uses: actions/create-github-app-token@v1
24+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v2
2125
with:
2226
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2327
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
24-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
2529
with:
2630
token: ${{ steps.token.outputs.token }}
2731
fetch-depth: 0
2832
- name: Prepare release
29-
uses: getsentry/craft@v2
33+
uses: getsentry/craft@39ee616a6a58dc64797feecb145d66770492b66c # v2
3034
env:
3135
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3236
with:

0 commit comments

Comments
 (0)