Skip to content

Fix: Harden CI/CD supply chain, formatting gates, and secret boundaries - #653

Open
mertcano wants to merge 1 commit into
inkonchain:mainfrom
mertcano:mertcano-patch-1
Open

Fix: Harden CI/CD supply chain, formatting gates, and secret boundaries#653
mertcano wants to merge 1 commit into
inkonchain:mainfrom
mertcano:mertcano-patch-1

Conversation

@mertcano

Copy link
Copy Markdown

Description

This PR addresses supply-chain security risks, implicit secret boundaries, and false-green CI checks identified during the workspace-wide security audit[cite: 53].

Key Changes

  • Supply-Chain Security (Immutable Action References): Replaced mutable action version tags (e.g., v2, main) with verified, full 40-character commit SHAs across .github/workflows/cicd.yaml[cite: 58], .github/workflows/securesdlc.yml[cite: 59], and .github/actions/base-setup/action.yaml[cite: 60]. This strictly prevents unreviewed upstream action changes from entering the deployment pipeline[cite: 53].
  • Formatting Gate (False-Green Prevention): The formatting job in cicd.yaml previously mutated files during checkout (e.g., prettier --write), which could hide formatting drift and silently pass the CI check[cite: 53]. It now runs pnpm run format:js:check, acting as a strict, read-only validation gate[cite: 53, 58].
  • Explicit Secret Boundaries: Prevented overly broad secret exposure by explicitly declaring and passing only the necessary secrets (SEMGREP_APP_URL, SEMGREP_APP_TOKEN, SDLC_SLACK_NOTIFICATIONS) to the nested SecureSDLC workflow in cicd.yaml and securesdlc.yml[cite: 53, 58, 59].

### Description
This PR addresses supply-chain security risks, implicit secret boundaries, and false-green CI checks identified during the workspace-wide security audit[cite: 53].

### Key Changes
* **Supply-Chain Security (Immutable Action References):** Replaced mutable action version tags (e.g., `v2`, `main`) with verified, full 40-character commit SHAs across `.github/workflows/cicd.yaml`[cite: 58], `.github/workflows/securesdlc.yml`[cite: 59], and `.github/actions/base-setup/action.yaml`[cite: 60]. This strictly prevents unreviewed upstream action changes from entering the deployment pipeline[cite: 53].
* **Formatting Gate (False-Green Prevention):** The formatting job in `cicd.yaml` previously mutated files during checkout (e.g., `prettier --write`), which could hide formatting drift and silently pass the CI check[cite: 53]. It now runs `pnpm run format:js:check`, acting as a strict, read-only validation gate[cite: 53, 58].
* **Explicit Secret Boundaries:** Prevented overly broad secret exposure by explicitly declaring and passing only the necessary secrets (`SEMGREP_APP_URL`, `SEMGREP_APP_TOKEN`, `SDLC_SLACK_NOTIFICATIONS`) to the nested SecureSDLC workflow in `cicd.yaml` and `securesdlc.yml`[cite: 53, 58, 59].
@mertcano
mertcano requested a review from a team as a code owner August 25, 2026 21:34
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