Skip to content

Commit 975e131

Browse files
committed
ci: add explicit GITHUB_TOKEN permissions to nightly and cargo workflows
nightly.yaml is a stub that just echoes a redirect message and exits 1 (the real workflow lives on the test-matrix branch). It doesn't need any GITHUB_TOKEN scope, so permissions: {}. rust.yml runs cargo test + cargo build + cmake test on every push/PR. Two jobs, both pure CI - contents: read is enough. The mdbook.yaml workflow already declares explicit permissions for the GitHub Pages deployment; this aligns the remaining cargo + nightly workflows with that pattern. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent 8ad013c commit 975e131

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/nightly.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ name: Crubit Nightly Test Matrix
55
on:
66
workflow_dispatch:
77

8+
permissions: {}
9+
810
jobs:
911
use-test-matrix:
1012
runs-on: ubuntu-latest

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
env:
1313
CARGO_TERM_COLOR: always
1414

15+
permissions:
16+
contents: read
17+
1518
# LINT.IfChange
1619
jobs:
1720
test:

0 commit comments

Comments
 (0)