Skip to content

Commit 915ad33

Browse files
committed
fix: Pin actions to SHA and add permissions blocks
1 parent 486e197 commit 915ad33

25 files changed

+46
-38
lines changed

.github/workflows/analyze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run:
2424
working-directory: ${{ inputs.package }}
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
2727
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # pin@v1
2828
if: ${{ inputs.sdk == 'dart' }}
2929
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # [email protected]
@@ -60,7 +60,7 @@ jobs:
6060
runs-on: ubuntu-latest
6161
timeout-minutes: 20
6262
steps:
63-
- uses: actions/checkout@v6
63+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
6464
- name: Apply dependency override
6565
if: ${{ inputs.package == 'flutter' }}
6666
working-directory: ${{ inputs.package }}

.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/changes-in-high-risk-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
high_risk_code: ${{ steps.changes.outputs.high_risk_code }}
1616
high_risk_code_files: ${{ steps.changes.outputs.high_risk_code_files }}
1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
1919
- name: Get changed files
2020
id: changes
2121
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- os: macos
3838
sdk: stable
3939
steps:
40-
- uses: actions/checkout@v6
40+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
4141

4242
- uses: ./.github/actions/dart-test
4343
with:

.github/workflows/diagrams.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
with:
1212
sdk: stable
1313

14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
1515

1616
- name: dependencies
1717
run: |

.github/workflows/dio.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
sdk: [stable, beta]
3232

3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
3535

3636
- uses: ./.github/actions/dart-test
3737
with:

.github/workflows/drift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
sdk: [stable, beta]
3232

3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
3535

3636
- name: Install libsqlite3 (Ubuntu)
3737
if: matrix.os == 'ubuntu'

.github/workflows/e2e_dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # pin@v1
3838
with:
3939
sdk: ${{ matrix.sdk }}
40-
- uses: actions/checkout@v6
40+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
4141
- name: Run
4242
if: env.SENTRY_AUTH_TOKEN != null
4343
run: |

.github/workflows/file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
sdk: [stable, beta]
3232

3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
3535

3636
- uses: ./.github/actions/dart-test
3737
with:

.github/workflows/firebase_remote_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
sdk: [stable, beta]
3333

3434
steps:
35-
- uses: actions/checkout@v6
35+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2
3636

3737
- uses: ./.github/actions/flutter-test
3838
with:

0 commit comments

Comments
 (0)