mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-11-05 16:21:06 +00:00
ci: read-only GITHUB_TOKEN for backend and frontend CI (#13)
CodeQL actions/missing-workflow-permissions #1-#3: neither workflow writes through GITHUB_TOKEN (checkout, toolchain, cache, upload-artifact).
This commit is contained in:
1 parent
27366cafe5
commit
fd87b1cce2
2 files changed
+10
No files matched your search
@@ -16,6 +16,11 @@ on:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
|
||||
# Read-only token: no step writes through GITHUB_TOKEN.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -13,6 +13,11 @@ on:
|
||||
- '.github/workflows/frontend-ci.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
# Read-only token: no step writes through GITHUB_TOKEN.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user