Repository navigation
Description
Description
Parent: #37 (Point 5 — Security Considerations)
Harden the repository's CI/CD supply chain and establish security policies.
This covers GitHub Actions SHA pinning, automated dependency updates, vulnerability disclosure,
code ownership enforcement, and CI-level guardrails to prevent regressions.
Problem Statement
Currently, all 38 external GitHub Action references across 10 workflow and composite action files
use mutable version tags (e.g. @v4, @v3.12.0). This exposes the CI/CD pipeline to supply-chain
attacks — a compromised or force-pushed tag could inject malicious code into every workflow run.
Additionally:
- No Dependabot configuration exists, so dependency updates are entirely manual
- No
SECURITY.mddocuments how to report vulnerabilities - No
CODEOWNERSenforces review requirements on critical paths (workflows, scripts) - No automated check prevents future PRs from introducing unpinned action references
These gaps are inconsistent with IEC 62304 configuration management requirements and
GitHub's own security hardening guidelines for Actions.
Proposed Solution
-
Pin all GitHub Actions to commit SHAs
- Replace every external
uses:tag reference with its full 40-character commit SHA - Preserve the original tag as a trailing comment for readability (e.g.
actions/checkout@<sha> # v4) - Covers 18 unique actions across 5 workflows and 5 composite actions
- Replace every external
-
Add Dependabot configuration
- Create
.github/dependabot.ymlcovering:github-actions,pip,docker,npm - Weekly schedule, targeting the
devbranch - Group minor/patch updates to reduce PR noise
- Create
-
Create SECURITY.md
- Supported versions table
- Vulnerability reporting instructions (private disclosure, not public issues)
- Response timeline expectations
- Scope of security concerns (supply chain, container image, workflow permissions)
-
Add CODEOWNERS
- Default ownership for all files
- Stricter ownership for
.github/workflows/,.github/actions/, andscripts/
-
Add CI enforcement for SHA pinning
- Script to scan workflow files for unpinned external action references
- Integrate into CI (
project-checksjob) and pre-commit hooks - Prevents regressions after initial pinning
Alternatives Considered
- Pin only critical actions (checkout, token generation): Reduces effort but leaves supply-chain gaps; inconsistent with best practices for regulated environments.
- Use a third-party tool like StepSecurity Harden-Runner: Adds runtime protection but introduces another external dependency; SHA pinning is the foundational layer regardless.
- Skip Dependabot, rely on manual updates: Higher maintenance burden; SHA pins become stale without automated update PRs.
Additional Context
- Branch protection is enforced via GitHub Enterprise (out of scope for this issue)
- No
pull_request_targettriggers exist in current workflows (good baseline) - Workflow permissions are already reasonably scoped (CI is read-only)
- References: GitHub Security Hardening for Actions, IEC 62304 Section 8 (Software Configuration Management)
Impact
- Beneficiaries: All developers, QA, RA, auditors — immutable CI/CD traceability
- Compatibility: Fully backward-compatible; no functional changes to workflows
- Risks: Minimal; Dependabot will create update PRs that need periodic review
- Compliance: Addresses IEC 62304 configuration management and traceability requirements for build tooling
Activity
ci: add GitHub Actions SHA pinning enforcement
docs(ci): add CODEOWNERS for automated review assignment
docs: add security policy and vulnerability reporting procedures
ci: pin GitHub Actions and Docker actions to commit SHAs
ci(security): harden workflow permissions and fix input injection
ci(security): pin pre-commit hook repos to commit SHAs
build(security): harden Containerfile with digest pinning and checksu…
ci(security): sanitize inline expression interpolation in workflow ru…
ci(security): add vulnerability scanning, SBOM, signing, and provenan…
ci(security): add vulnerability scanning and dependency review to CI …
ci(security): add OpenSSF Scorecard and CodeQL analysis workflows
docs(security): update security policy and code ownership
fix(pre-commit): update exclusion pattern for pymarkdown in pre-commi…
docs: update release workflow in CONTRIBUTE to match automated process
build(security): add version verification for cargo-binstall download
ci(security): sanitize input interpolation and add explicit UTF-8 enc…
test: add edge case tests for changelog, action pins, and install
build(security): add minisign signature verification for cargo-binstall
docs: update CHANGELOG with security hardening entries
c-vigo commentedon Feb 11, 2026
Completed. All security hardening changes merged into feature/37-automate-standardize-repository-setup.
fix(security): resolve container image vulnerabilities
ci(security): add non-blocking MEDIUM severity vulnerability reporting
ci(sbom): generate container SBOM in CI pipeline for supply chain tra…
ci(security): add Python dependency and code security scanning
build(deps): enable Dependabot license compliance monitoring
chore: release 0.3.0 (#270)