Skip to content

Commit 2e149b5

Browse files
committed
add permissions for GitHub Actions jobs in rust.yml
1 parent f6e0279 commit 2e149b5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Rust
22

3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
checks: write
7+
security-events: write
8+
39
on:
410
push:
511
pull_request:
@@ -50,6 +56,11 @@ jobs:
5056
sarif_file: rust-clippy-results.sarif
5157
wait-for-processing: true
5258
test:
59+
permissions:
60+
contents: read
61+
pull-requests: write
62+
checks: write
63+
security-events: write
5364
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)
5465
runs-on: ubuntu-latest
5566
steps:

0 commit comments

Comments
 (0)