Skip to content

👷 chore(ci): harden CI install steps (SEC-04j) - #150

Merged
konih merged 1 commit into
mainfrom
sec-04j-ci-hardening
Jul 31, 2026
Merged

konih merged 1 commit into
mainfrom
sec-04j-ci-hardening

Conversation

@konih

@konih konih commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

SEC-04j (P1) — CI-hardening findings

CodeQL/SonarCloud CI-hardening findings not in the original KO list:

  • .devcontainer/post-install.sh — kind/kubebuilder/kubectl curl downloads enforce HTTPS end-to-end (--proto '=https' --proto-redir '=https' --tlsv1.2) so a redirect can't downgrade to plaintext.
  • .github/actions/kind-e2e-setup/action.yml — kind download curl enforces HTTPS.
  • .github/workflows/e2e-nightly.yaml — npm ci --ignore-scripts blocks dependency postinstall scripts in CI (npm ci is lockfile-pinned). Build verified unaffected (vite/esbuild/rollup use optionalDependencies; Playwright browsers install explicitly next step).
  • .github/workflows/docs.yaml — pip install --only-binary=:all: refuses source builds (wheels only).

Gates: shellcheck ✅ · actionlint (both workflows) ✅ · sonar_ko_06 docs-perms + sonar_ko_08 workflow-perms guards ✅. Independent review APPROVE, no P0/P1.

Follow-up (P3, non-blocking, from review): --ignore-scripts also skips the repo's root postinstall (link-openapi.mjs) that copies openapi/v1alpha1/inventory.yaml→ui/openapi/ and the logo into ui/public/. Those copies are git-tracked and currently in sync, so no break — but consider a CI drift-check so a future un-committed source edit can't build against stale copies.

CodeQL/SonarCloud CI-hardening findings not in the original KO list:
- .devcontainer/post-install.sh: kind/kubebuilder/kubectl curl downloads enforce
  HTTPS end-to-end (--proto '=https' --proto-redir '=https' --tlsv1.2) so a
  redirect cannot downgrade to plaintext.
- .github/actions/kind-e2e-setup/action.yml: kind download curl enforces HTTPS.
- .github/workflows/e2e-nightly.yaml: npm ci --ignore-scripts blocks dependency
  postinstall scripts in CI (npm ci already pins to the lockfile); build verified
  unaffected (vite/esbuild/rollup use optionalDependencies; Playwright browsers
  install explicitly in the next step).
- .github/workflows/docs.yaml: pip install --only-binary=:all: refuses to build
  any dependency from source (wheels only).

Gates: shellcheck clean; actionlint clean (both workflows); sonar_ko_06 docs-perms
and sonar_ko_08 workflow-perms guards intact.
@konih
konih merged commit b346836 into main Jul 31, 2026
23 of 24 checks passed
@konih
konih deleted the sec-04j-ci-hardening branch July 31, 2026 12:18
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

konih added a commit that referenced this pull request Jul 31, 2026
Bump chart version/appVersion 0.10.0 -> 0.11.0 for the next minor. Unreleased
since v0.10.0: feat(netguard) NET-01 --allow-private-sinks opt-in (#146) +
fix(controller) inventory store source Start non-blocking / DR-FIND-01 (#143),
plus DR-FIND-03 lab-bootstrap docs (#148), UI-TEST-01 (#147), SEC-04j
CI-hardening (#150).
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