Skip to content

Commit 97bd81c

Browse files
committed
workflow permissions updates
1 parent 02dfdb7 commit 97bd81c

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/acceptance.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
# Detects changes to any of the source files for entitlements-app
1114
changes:
1215
runs-on: ubuntu-latest
13-
permissions:
14-
contents: read
1516

1617
outputs:
1718
has_change: ${{ steps.diff.outputs.has_change}}
@@ -57,8 +58,6 @@ jobs:
5758
strategy:
5859
matrix:
5960
ruby: [ '2.7.5', '3.1.2', '3.2.2', '3.3.0' ]
60-
permissions:
61-
contents: read
6261

6362
steps:
6463
- uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # [email protected]

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ on:
99
schedule:
1010
- cron: '25 4 * * 5'
1111

12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
1217
jobs:
1318
analyze:
1419
name: Analyze
1520
runs-on: ubuntu-latest
16-
permissions:
17-
actions: read
18-
contents: read
19-
security-events: write
2021

2122
strategy:
2223
fail-fast: false

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
rubocop:
1114
name: runner / rubocop
1215
runs-on: ubuntu-latest
1316
strategy:
1417
matrix:
1518
ruby: [ '2.7.5', '3.1.2', '3.2.2', '3.3.0' ]
16-
permissions:
17-
contents: read
1819

1920
steps:
2021
- name: checkout

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
rubocop:
1114
name: runner / rspec
1215
runs-on: ubuntu-latest
1316
strategy:
1417
matrix:
1518
ruby: [ '2.7.5', '3.1.2', '3.2.2', '3.3.0' ]
16-
permissions:
17-
contents: read
1819

1920
steps:
2021
- name: checkout

0 commit comments

Comments
 (0)