fix(ci): add explicit top-level permissions to existing workflows#24
Open
LukeEvansTech wants to merge 7 commits into
Open
fix(ci): add explicit top-level permissions to existing workflows#24LukeEvansTech wants to merge 7 commits into
LukeEvansTech wants to merge 7 commits into
Conversation
…flows
CHECKOV CKV2_GHA_1 ("top-level permissions not set to write-all") fires
on workflows without an explicit top-level permissions block. Add the
GitHub-recommended least-privilege default; per-job overrides remain
intact and take precedence at runtime.
Super-linter summary
Super-linter detected linting errors For more information, see the GitHub Actions workflow run Powered by Super-linter GITHUB_ACTIONS_ZIZMORYAML_PRETTIER |
Super-linter summary
Super-linter detected linting errors For more information, see the GitHub Actions workflow run Powered by Super-linter GITHUB_ACTIONS_ZIZMOR |
…ions - zizmor --fix=all: adds 'persist-credentials: false' to actions/checkout invocations (artipacked audit) and other safe security fixes. - prettier --write: normalises workflow YAML formatting (YAML_PRETTIER). - ensures top-level 'permissions: contents: read' on every workflow (CKV2_GHA_1).
Super-linter summary
Super-linter detected linting errors For more information, see the GitHub Actions workflow run Powered by Super-linter GITHUB_ACTIONS_ZIZMOR |
Super-linter summary
Super-linter detected linting errors For more information, see the GitHub Actions workflow run Powered by Super-linter GITHUB_ACTIONS_ZIZMOR |
… SHA - Top-level permissions reduced to 'contents: read' (least-privilege). - Job-level adds 'statuses: write' + 'pull-requests: write' for super-linter. - Bumped LukeEvansTech/shared-workflows pin to current v1 SHA. Resolves zizmor excessive-permissions on the lint.yml caller.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the super-linter rollout. CHECKOV CKV2_GHA_1 ("top-level permissions not set to write-all") fires on workflows without an explicit top-level permissions block. Adding the GitHub-recommended least-privilege default (
permissions: contents: read) at the top of each existing workflow.Per-job overrides are intact and take precedence at runtime.