Skip to content

Commit 7b289e7

Browse files
authored
Merge pull request #2400 from turrisxyz/setup-permissions
chore: Set permissions for GitHub actions
2 parents b1eabf6 + 0a145f3 commit 7b289e7

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.github/workflows/ci_crontests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
# run every Monday at 5am UTC
1010
- cron: '0 5 * * 1'
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
tests:
1417
name: ${{ matrix.name }}

.github/workflows/ci_devtests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}
1919
cancel-in-progress: true
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
tests:
2326
name: ${{ matrix.name }}

.github/workflows/ci_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}
1919
cancel-in-progress: true
2020

21+
permissions:
22+
contents: read
2123

2224
jobs:
2325
tests:

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
analyze:
19+
permissions:
20+
actions: read # for github/codeql-action/init to get workflow details
21+
contents: read # for actions/checkout to fetch code
22+
security-events: write # for github/codeql-action/autobuild to send a status report
1623
name: Analyze
1724
runs-on: ubuntu-latest
1825

0 commit comments

Comments
 (0)