Skip to content

Fix: Harden CI/CD supply chain controls and explicit secret boundaries - #1

Open
magqqgq wants to merge 2 commits into
inkonchain:mainfrom
magqqgq:magqqgq-patch-1
Open

Fix: Harden CI/CD supply chain controls and explicit secret boundaries#1
magqqgq wants to merge 2 commits into
inkonchain:mainfrom
magqqgq:magqqgq-patch-1

Conversation

@magqqgq

@magqqgq magqqgq commented Aug 25, 2026

Copy link
Copy Markdown

Description

This PR addresses high- and low-severity findings from the workspace-wide security audit regarding CI/CD supply-chain risks and implicit secret inheritance[cite: 53].

Key Changes

  • Explicit Secret Boundaries (.github/workflows/*.yml, workflow-templates/*.yml): Removed the unsafe secrets: inherit behavior and empty workflow_call declarations[cite: 53]. The shared, required, development, and template workflows now explicitly declare and pass only the required three-secret interface (SEMGREP_APP_URL, SEMGREP_APP_TOKEN, and SDLC_SLACK_NOTIFICATIONS)[cite: 53, 54, 55, 56, 57].
  • Immutable Action References (.github/workflows/*.yml, workflow-templates/*.yml): Replaced mutable reusable-workflow branch references (such as main and release-stable) with verified, full 40-character commit SHAs to prevent unreviewed supply-chain execution[cite: 53]. The production/release workflows are securely pinned to d61b052e36d795bf5ed9eeb116b4851cc0bbdcdd[cite: 54, 56, 57], and the development workflow is pinned to d0c22c2ca17f94fd70054496c71a63f5eeba75e7[cite: 55].

### Description
This PR addresses high- and low-severity findings from the workspace-wide security audit regarding CI/CD supply-chain risks and implicit secret inheritance[cite: 53].

### Key Changes
* **Explicit Secret Boundaries (`.github/workflows/*.yml`, `workflow-templates/*.yml`):** Removed the unsafe `secrets: inherit` behavior and empty `workflow_call` declarations[cite: 53]. The shared, required, development, and template workflows now explicitly declare and pass only the required three-secret interface (`SEMGREP_APP_URL`, `SEMGREP_APP_TOKEN`, and `SDLC_SLACK_NOTIFICATIONS`)[cite: 53, 54, 55, 56, 57].
* **Immutable Action References (`.github/workflows/*.yml`, `workflow-templates/*.yml`):** Replaced mutable reusable-workflow branch references (such as `main` and `release-stable`) with verified, full 40-character commit SHAs to prevent unreviewed supply-chain execution[cite: 53]. The production/release workflows are securely pinned to `d61b052e36d795bf5ed9eeb116b4851cc0bbdcdd`[cite: 54, 56, 57], and the development workflow is pinned to `d0c22c2ca17f94fd70054496c71a63f5eeba75e7`[cite: 55].
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