Skip to content

ci: add dependency review, Go module checks and security scans - #2

Draft
taylanpince wants to merge 2 commits into
masterfrom
chore/ci-security-gates
Draft

taylanpince wants to merge 2 commits into
masterfrom
chore/ci-security-gates

Conversation

@taylanpince

Copy link
Copy Markdown

Add PR dependency review that rejects high or critical vulnerabilities across all dependency scopes and licenses outside the allowlist. Run go mod verify and go mod tidy -diff on every PR for both Go modules, with pinned govulncheck scans weekly and on module-file changes.

Add pinned zizmor scans on PRs and weekly, publishing findings to code scanning; blocking requires a code-scanning ruleset. Configure weekly Dependabot updates with a seven-day cooldown and grouped minor/patch action updates. Assign .github/ ownership to @0xsequence/core; mandatory owner review requires a default-branch ruleset.

Testing

No validation results provided.

- Dependency review on every PR: fails on high or critical advisories
  (runtime, development and unknown scopes) and on licences outside the
  allowlist. Packages already in the tree under another licence are listed
  as exemptions; a new one still fails.
- zizmor on every PR and weekly, reporting to code scanning.
- go mod verify and go mod tidy -diff on every PR; govulncheck weekly
  and on PRs that change go.mod/go.sum.
- Dependabot keeps the pinned actions current (minor/patch, 7-day cooldown).
- CODEOWNERS covers .github/, so changes to the gates need an owner's review
  once the default-branch ruleset requires it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

govulncheck v1.10.0 requires Go 1.26, and setup-go exports GOTOOLCHAIN=local, so
the install failed on every module below Go 1.26. Allow that one install
to download the toolchain it needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants