Skip to content

fix(ci): resolve repo-owned workflow security findings - #569

Merged
c-vigo merged 4 commits into
devfrom
bugfix/562-resolve-workflow-security-findings
Jun 9, 2026
Merged

c-vigo merged 4 commits into
devfrom
bugfix/562-resolve-workflow-security-findings

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

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 workspace release-extension.yml template, and documents verified branch-protection rulesets plus accepted Scorecard posture.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • Renovate changelog refactor (A1)
    • Replace .github/workflows/renovate-changelog.yml with renovate-changelog-build.yml (pull_request, read-only, uploads CHANGELOG artifact) and renovate-changelog-commit.yml (workflow_run, App-token commit, no PR-head checkout)
    • Mirror the same split under assets/workspace/.github/workflows/
    • Update scripts/manifest.toml sync entries for the two new workflow files
  • CodeQL Actions coverage (A2)
    • Add actions to the CodeQL language matrix in root and workspace codeql.yml
    • Add .github/workflows/** to CodeQL push paths on main so default-branch runs re-scan workflows
  • Template permissions (A4)
    • Add permissions: contents: read to assets/workspace/.github/workflows/release-extension.yml
  • Posture documentation (A3)
    • Update SECURITY.md with verified Main protection ruleset requirements and accepted OpenSSF Scorecard findings (Fuzzing, CII)

Changelog Entry

Security

  • Resolve repo-owned workflow security findings (#562)
    • Split Renovate changelog automation into read-only pull_request build + privileged workflow_run commit, removing pull_request_target and PR-head checkout under elevated permissions (Scorecard DangerousWorkflowID)
    • Add GitHub Actions to CodeQL language matrix so stale actions/missing-workflow-permissions alerts auto-close on the next default-branch run
    • Add explicit permissions: to workspace release-extension.yml template; downstream smoke-test updates flow through release re-sync
    • Document accepted OpenSSF Scorecard posture (Fuzzing, CII) and verified branch-protection rulesets in SECURITY.md

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • yamllint, check-yaml, check-action-pins, and actionlint passed on changed workflow files
  • pre-commit hooks passed on all four commits
  • End-to-end Renovate changelog commit path requires merge to main (workflow_run runs default-branch workflow definition)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Refs: #562

c-vigo added 4 commits June 9, 2026 12:25
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
@c-vigo c-vigo self-assigned this Jun 9, 2026
@c-vigo
c-vigo enabled auto-merge June 9, 2026 10:37
@c-vigo
c-vigo merged commit 65968f6 into dev Jun 9, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/562-resolve-workflow-security-findings branch June 9, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant