ci: fix workflow failures on PR
- drop permissions block from reusable build workflow so callers set token scope (fixes PR-checks startup failure: ci.yml grants only contents:read while the reusable demanded packages:write) - remove codeql.yml: repo already uses CodeQL default setup, which conflicts with an advanced configuration - pin trivy-action to 0.36.0 (0.28.0 tag does not exist; <0.35.0 is the compromised supply-chain release flagged by dependency-review) - make pip-audit and npm audit informational (continue-on-error); they flag upstream/transitive advisories, dependency-review stays the PR gate
This commit is contained in:
@@ -21,9 +21,10 @@ on:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
# No permissions block here on purpose: a reusable workflow cannot request more
|
||||
# than its caller grants, so the token scope is set by each caller
|
||||
# (docker-dev.yml / docker-release.yml grant packages: write to push; ci.yml
|
||||
# only needs contents: read for a no-push build).
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user