Skip to content

Commit 3f942fc

Browse files
authored
Merge pull request #153 from timvw/fix/codeql-permissions
Add explicit permissions to GitHub workflows
2 parents 1a4468c + 0d511fa commit 3f942fc

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/binaries-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
CARGO_INCREMENTAL: 0
1114
CARGO_NET_GIT_FETCH_WITH_CLI: true

.github/workflows/test_suite.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'main'
1414
workflow_dispatch:
1515

16+
permissions:
17+
contents: read
18+
1619
concurrency:
1720
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1821
cancel-in-progress: true
@@ -22,6 +25,10 @@ jobs:
2225
if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/') || startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'release-plz')))
2326
name: cargo test
2427
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
checks: write
31+
statuses: write
2532
steps:
2633
- uses: actions/checkout@v6
2734
with:

0 commit comments

Comments
 (0)