Skip to content

Commit 05d266e

Browse files
committed
fix: Pin actions to SHA and add permissions blocks
1 parent e0230e8 commit 05d266e

21 files changed

+35
-23
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
timeout-minutes: 10
2525

2626
steps:
27-
- uses: actions/checkout@v6.0.1
27+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
2828
- uses: actions/setup-python@v6
2929
with:
3030
python-version: 3.14
@@ -39,7 +39,7 @@ jobs:
3939
timeout-minutes: 10
4040

4141
steps:
42-
- uses: actions/checkout@v6.0.1
42+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
4343
- uses: actions/setup-python@v6
4444
with:
4545
python-version: 3.12
@@ -70,7 +70,7 @@ jobs:
7070
timeout-minutes: 10
7171

7272
steps:
73-
- uses: actions/checkout@v6.0.1
73+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
7474
- uses: actions/setup-python@v6
7575
with:
7676
python-version: 3.12

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
steps:
5050
- name: Checkout repository
51-
uses: actions/checkout@v6.0.1
51+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
5252

5353
# Initializes the CodeQL tools for scanning.
5454
- name: Initialize CodeQL

.github/workflows/release-comment-issues.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
required: false
1111

1212
# This workflow is triggered when a release is published
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
1317
jobs:
1418
release-comment-issues:
1519
runs-on: ubuntu-20.04

.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:

.github/workflows/test-integrations-agents.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# Use Docker container only for Python 3.6
3939
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
4040
steps:
41-
- uses: actions/checkout@v6.0.1
41+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
4242
- uses: actions/setup-python@v6
4343
if: ${{ matrix.python-version != '3.6' }}
4444
with:

.github/workflows/test-integrations-ai-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# Use Docker container only for Python 3.6
3939
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
4040
steps:
41-
- uses: actions/checkout@v6.0.1
41+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
4242
- uses: actions/setup-python@v6
4343
if: ${{ matrix.python-version != '3.6' }}
4444
with:

.github/workflows/test-integrations-ai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# Use Docker container only for Python 3.6
3939
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
4040
steps:
41-
- uses: actions/checkout@v6.0.1
41+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
4242
- uses: actions/setup-python@v6
4343
if: ${{ matrix.python-version != '3.6' }}
4444
with:

.github/workflows/test-integrations-cloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
# Use Docker container only for Python 3.6
4343
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
4444
steps:
45-
- uses: actions/checkout@v6.0.1
45+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
4646
- uses: actions/setup-python@v6
4747
if: ${{ matrix.python-version != '3.6' }}
4848
with:

.github/workflows/test-integrations-common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# Use Docker container only for Python 3.6
3939
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
4040
steps:
41-
- uses: actions/checkout@v6.0.1
41+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2.0.1
4242
- uses: actions/setup-python@v6
4343
if: ${{ matrix.python-version != '3.6' }}
4444
with:

0 commit comments

Comments
 (0)