Repository navigation
fix(ci): resolve repo-owned workflow security findings - #569
Merged
Merged
Conversation
Replace pull_request_target with a read-only pull_request build job that uploads a CHANGELOG artifact and a workflow_run commit job that never checks out PR-head code under elevated permissions. Refs: #562
Scan GitHub Actions workflows alongside Python so stale missing-workflow-permissions alerts auto-close after merge. Refs: #562
Record verified Main protection ruleset requirements and accepted OpenSSF Scorecard findings not applicable to a devcontainer repo. Refs: #562
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.
Description
Resolves repo-owned Scorecard and CodeQL workflow findings tracked in #562. Splits Renovate changelog automation off the dangerous
pull_request_target+ PR-head-checkout pattern, adds CodeQL Actions scanning so stale permission alerts auto-close, hardens the workspacerelease-extension.ymltemplate, and documents verified branch-protection rulesets plus accepted Scorecard posture.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/renovate-changelog.ymlwithrenovate-changelog-build.yml(pull_request, read-only, uploads CHANGELOG artifact) andrenovate-changelog-commit.yml(workflow_run, App-token commit, no PR-head checkout)assets/workspace/.github/workflows/scripts/manifest.tomlsync entries for the two new workflow filesactionsto the CodeQL language matrix in root and workspacecodeql.yml.github/workflows/**to CodeQL push paths onmainso default-branch runs re-scan workflowspermissions: contents: readtoassets/workspace/.github/workflows/release-extension.ymlSECURITY.mdwith verified Main protection ruleset requirements and accepted OpenSSF Scorecard findings (Fuzzing, CII)Changelog Entry
Security
pull_requestbuild + privilegedworkflow_runcommit, removingpull_request_targetand PR-head checkout under elevated permissions (ScorecardDangerousWorkflowID)actions/missing-workflow-permissionsalerts auto-close on the next default-branch runpermissions:to workspacerelease-extension.ymltemplate; downstream smoke-test updates flow through release re-syncSECURITY.mdTesting
just test)Manual Testing Details
main(workflow_runruns default-branch workflow definition)Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
DangerousWorkflowID) should clear after Scorecard re-runs onmainpost-mergeFuzzingIDandCIIBestPracticesIDdocumented as accepted won't-fix for a devcontainer image reporelease-extension.ymlis not patched directly; updates flow through this repo's release re-sync actionsRefs: #562