You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
needs/if should prevent errors about nested jobs violating permissions #4151
context.Error(workflowJob.Id,$"Error calling workflow '{workflowJob.Ref}'. The nested job '{embeddedJob.Id!.Value}' is requesting '{requestedStr}', but is only allowed '{allowedStr}'.");
1 error Invalid workflow file: .github/workflows/test-extension-workflows-release-2.8.yml#L63
The workflow is not valid. .github/workflows/test-extension-workflows-release-2.8.yml (Line: 63, Col: 3): Error calling workflow 'rancher/dashboard/.github/workflows/release-shell-pkg.yaml@release-2.8'. The nested job 'build' is requesting 'packages: write', but is only allowed 'packages: read'.
Repository authors will do this (this repository did it repeatedly) and there doesn't seem to be a good reason to demand authors get this right.
There doesn't appear to be any way to guard against this, as even if doesn't help:
1 error Invalid workflow file: .github/workflows/test-extension-workflows-release-2.9.yml#L64
The workflow is not valid. .github/workflows/test-extension-workflows-release-2.9.yml (Line: 64, Col: 3): Error calling workflow 'rancher/dashboard/.github/workflows/release-shell-pkg.yaml@release-2.9'. The nested job 'build' is requesting 'packages: write', but is only allowed 'packages: read'.
changed the title [-]`needs` should prevent errors about nested jobs violating permissions[/-][+]`needs`/`if` should prevent errors about nested jobs violating permissions[/+]on Dec 14, 2025
Activity
[-]`needs` should prevent errors about nested jobs violating permissions[/-][+]`needs`/`if` should prevent errors about nested jobs violating permissions[/+]chore: add permissions to validate cdk release workflow (#3071)
DEV-2055: fix review findings — release-path perms ceiling, trunk par…
DEV-2055: Dev-owned test enforcement + one PR pipeline (#13065)
feat(db-gate,property): fuzz every route, and a budget a nightly can …
build: grant build job permissions to satisfy spel's release-pr ceiling