Skip to content

ci: add dependency review, Go checks and workflow security scanning - #8

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 CI checks to catch vulnerable dependencies, disallowed licenses, module inconsistencies and workflow security issues.

  • Run dependency review and go mod verify / go mod tidy -diff on every PR, rejecting high or critical dependency advisories and licenses outside the allowlist.
  • Run pinned govulncheck weekly, manually and on PRs changing go.mod or go.sum.
  • Run zizmor on every PR and weekly, uploading findings to code scanning. Blocking findings requires a code scanning ruleset rule.
  • Add weekly Dependabot updates for GitHub Actions with a seven-day cooldown and grouped minor/patch updates. Assign .github/ ownership to @0xsequence/core; mandatory owner review requires a ruleset setting.

Testing

No checks were reported as run.

- 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.

`go mod tidy -diff` needs Go 1.23 and this module is on an older Go:
run `go mod tidy` and fail on any go.mod/go.sum change instead.

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