Repository navigation
Closed
Labels
area:ciCI/CD, GitHub Actions, workflowseffort:medium1-4 hourspriority:highShould be done in the current milestonesecurityVulnerability fixes or security improvements
Description
Bucket A - Repo-owned config findings
The only Security-tab findings that live in this repo's own code/config (everything else is upstream container packages). Verified against dev on 2026-06-09.
A1. Scorecard CRITICAL - DangerousWorkflowID (alert #1748)
- File:
.github/workflows/renovate-changelog.yml - Scorecard flags
pull_request_targetcombined with checkout of the PR head SHA. - Mitigating context: the privileged jobs are guarded by
github.event.pull_request.user.login == 'renovate[bot]'andhead.repo.full_name == github.repository, so untrusted forks cannot reach the privileged path. - Decision required:
- Option 1 (accept): dismiss alert [FEATURE] Rust pack L6: seed templates for the three release seams (cargo set-version, publish dry-run, cargo publish --workspace + Trusted Publishing) #1748 via
gh api repos/vig-os/devcontainer/code-scanning/alerts/1748 -X PATCH -f state=dismissed -f dismissed_reason="won't fix" -f dismissed_comment="<rationale>", documenting the guards. - Option 2 (refactor): split into a non-privileged
pull_requestjob (build/upload artifact) + a privilegedworkflow_runjob (commit), removing head checkout underpull_request_target.
- Option 1 (accept): dismiss alert [FEATURE] Rust pack L6: seed templates for the three release seams (cargo set-version, publish dry-run, cargo publish --workspace + Trusted Publishing) #1748 via
A2. CodeQL - actions/missing-workflow-permissions x4 (alerts #453-456) - STALE
- Files:
ci.yml,codeql.yml,scorecard.yml,security-scan.yml. - Verified already remediated on
dev: all four declare explicit permissions (top-level + per-job). e.g.ci.ymltop-levelcontents: read,codeql.yml/scorecard.ymlpermissions: {}+ per-job scopes. - Action: confirm the latest default-branch CodeQL run, then dismiss/let auto-resolve any that linger. Likely no code change needed.
A3. Scorecard posture
BranchProtectionID(high),CodeReviewID(high): governed by GitHub rulesets (SECURITY.md states protection via GitHub Enterprise). Verify rulesets require review.VulnerabilitiesID(high): roll-up of the Trivy/Dependabot vulns - auto-clears as buckets B-D land.FuzzingID(medium),CIIBestPracticesID(low): not meaningful for a devcontainer image repo - document as accepted/won't-fix.
A4. Workspace template parity (downstream vig-os/devcontainer-smoke-test)
The smoke-test repo deploys copies of assets/workspace/ templates. Equivalent Scorecard findings there are closely related to A1/A2 and should be fixed at the template source.
| Finding | Template file | Smoke-test impact |
|---|---|---|
DangerousWorkflowID (critical) |
assets/workspace/.github/workflows/renovate-changelog.yml |
Same pull_request_target + PR-head checkout pattern as A1 |
TokenPermissionsID (high) on release-extension.yml |
assets/workspace/.github/workflows/release-extension.yml |
Only template workflow with no permissions: block |
TokenPermissionsID x16 on other workflows |
Already fixed in current templates | Stale deployed copies in smoke-test |
Actions:
- Apply the same A1 remediation to
assets/workspace/.github/workflows/renovate-changelog.yml(accept+dismiss or refactor offpull_request_target). - Add a
permissions:block toassets/workspace/.github/workflows/release-extension.yml. - Also apply the
release-extension.ymlpermissions fix directly invig-os/devcontainer-smoke-test, because that file is inPRESERVE_FILESinassets/init-workspace.sh(line 33) and is never overwritten by the release re-sync. - The other ~16
TokenPermissionsIDfindings are stale copies; they clear automatically on the next release re-sync (no manual step). Therelease.ymlsmoke-test job dispatchessmoke-test-trigger, which runsinit-workspace.sh --smoke-testinside the newly released image.
Acceptance criteria
- Alert [FEATURE] Rust pack L6: seed templates for the three release seams (cargo set-version, publish dry-run, cargo publish --workspace + Trusted Publishing) #1748 resolved (dismissed-with-rationale or fixed by refactor)
- CodeQL alerts Smoke-test dispatch failed for 0.3.1-rc25 #453-456 closed/auto-resolved
- Branch-protection/code-review rulesets verified
- Fuzzing/CII findings documented as accepted
- Template
renovate-changelog.ymlandrelease-extension.ymlfixed; smoke-testrelease-extension.ymlpatched directly
Metadata
Metadata
Assignees
Labels
area:ciCI/CD, GitHub Actions, workflowseffort:medium1-4 hourspriority:highShould be done in the current milestonesecurityVulnerability fixes or security improvements
Activity
fix(ci): split renovate changelog into build and commit workflows
fix(ci): add CodeQL Actions analysis for workflow permissions
docs: document Scorecard posture and branch rulesets
docs: add unreleased entry for workflow security remediation
fix(ci): resolve repo-owned workflow security findings (#569)
docs: add downstream SECURITY.md template and document accepted Score…
chore: release 0.3.5 (#154)
chore: release 0.3.5 (#575)