Skip to content

chore(ci): add artifact security scanning to release pipelines#225

Draft
pkosiec wants to merge 1 commit intomainfrom
pkosiec/artifact-scanner
Draft

chore(ci): add artifact security scanning to release pipelines#225
pkosiec wants to merge 1 commit intomainfrom
pkosiec/artifact-scanner

Conversation

@pkosiec
Copy link
Copy Markdown
Member

@pkosiec pkosiec commented Apr 1, 2026

Summary

  • Add gh-action-scan to both release workflows (release.yml, release-lakebase.yml)
  • Scan runs before git push — if scan fails, no tag is pushed and no npm publish happens
  • Decouple npm publish from release-it's after:release hook into explicit workflow steps
  • Uncomment push-to-main triggers for both release workflows
  • Use release-it --ci --no-git.push --no-github.release to build + tag locally, then push + create GH release + publish only after scan passes

How it works

  1. release-it runs full lifecycle (audit → bump → build → dist → sbom → commit → tag) but stops before pushing
  2. gh-action-scan scans the built tmp/ directories
  3. If scans pass: push tag, create GitHub release (with changelog notes), publish to npm
  4. If scan fails: workflow fails, no tag pushed, no publish — clean state

Test plan

  • Trigger dry-run release — scan/push/publish steps should be skipped
  • Trigger real release — scan steps run before push, changelog notes extracted for GH release
  • Verify security-scan-results-* artifacts are uploaded
  • Verify npm publish succeeds after scan
  • Verify local pnpm release still works (release-it config unchanged for push/release)

@pkosiec pkosiec changed the title chore(ci): add artifact security scanning to CI chore(ci): add artifact security scanning to release pipelines Apr 1, 2026
@pkosiec pkosiec force-pushed the pkosiec/artifact-scanner branch from aaf00e7 to de3cb46 Compare April 1, 2026 09:12
- Add gh-action-scan before git push in both release workflows, so
  compromised artifacts block the release before any tag is published
- Decouple npm publish from release-it's after:release hook into
  explicit workflow steps for better control flow
- Uncomment push-to-main triggers for both release workflows
- Use databricks/gh-action-scan composite action (SHA-pinned)

Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
@pkosiec pkosiec force-pushed the pkosiec/artifact-scanner branch from de3cb46 to 9e94916 Compare April 1, 2026 09:13
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