Skip to content

Commit cc4b1ec

Browse files
authored
chore: add missing permissions for GitHub workflows (#1417)
1 parent c539392 commit cc4b1ec

File tree

10 files changed

+16
-3
lines changed

10 files changed

+16
-3
lines changed

.github/workflows/api-compat-verification.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main
88
- '*-main'
99

10+
permissions: { }
11+
1012
jobs:
1113
api-compat-verification:
1214
runs-on: ubuntu-latest

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
permissions: { }
12+
1113
# Allow one instance of this workflow per pull request, and cancel older runs when new changes are pushed
1214
concurrency:
1315
group: ci-pr-${{ github.ref }}

.github/workflows/issue-regression-labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: issue-regression-label
33
on:
44
issues:
55
types: [opened, edited]
6+
permissions: { }
67
jobs:
78
add-regression-label:
89
runs-on: ubuntu-latest

.github/workflows/jreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: JReleaser check
44
on:
55
pull_request:
6-
6+
permissions: { }
77
jobs:
88
jreleaser-check:
99
permissions: {}

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- '*-main'
1313
workflow_dispatch:
1414

15+
permissions: { }
16+
1517
env:
1618
PACKAGE_NAME: smithy-kotlin
1719

.github/workflows/merge-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches: [ main ]
55
workflow_dispatch:
6-
6+
permissions: { }
77
jobs:
88
merge:
99
runs-on: ubuntu-latest

.github/workflows/minor-version-bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Minor version bump check
22
on:
33
pull_request:
4-
4+
permissions: { }
55
jobs:
66
minor-version-bump-check:
77
permissions: {}

.github/workflows/release-readiness.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches: [ main ]
99

10+
permissions: { }
11+
1012
jobs:
1113
release-readiness:
1214
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ready-for-release') }}

.github/workflows/stale_issue.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
schedule:
66
- cron: "0 0/3 * * *"
77

8+
permissions: { }
9+
810
jobs:
911
cleanup:
1012
name: Stale issue job

.github/workflows/sync-mirror.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ main ]
66
workflow_dispatch:
77

8+
permissions: { }
9+
810
jobs:
911
git-sync:
1012
# Only sync when pushing to source repo

0 commit comments

Comments
 (0)