Skip to content

ci: run the security gates from this repo instead of pipelines - #1078

Draft
taylanpince wants to merge 1 commit into
masterfrom
ci/security-gates
Draft

taylanpince wants to merge 1 commit into
masterfrom
ci/security-gates

Conversation

@taylanpince

Copy link
Copy Markdown
Contributor

The dependency review, zizmor workflows here were calls to the shared 0xPolygon/pipelines workflows. This copies them into the repo with the same allowlist and thresholds, so they keep working whatever happens to the visibility of pipelines. It replaces #1069, which can be closed.

What runs

  • dependency-review.yml, on every PR: fails when the PR adds a dependency with a high or critical advisory (runtime, development and unknown scopes), or one whose licence is outside the permissive allowlist. The 14 packages already in the tree under another licence are listed as exemptions; a new one still fails.
  • zizmor.yml, on every PR and weekly: lints the workflows and reports to code scanning. The job itself passes; findings show as code scanning alerts.
  • CODEOWNERS: /.github/ is owned by the repo's owners plus @0xsequence/core, so a PR can't quietly loosen these checks once the default-branch ruleset requires code-owner review.

Before merging

  • Dependency review only looks at dependencies the PR changes, so it should pass here. If it flags something, it is in the PR's own diff.
  • None of these checks is required yet. Making them required is a separate ruleset change.

The security gates were calls to the shared 0xPolygon/pipelines workflows.
They now live in this repo, with the same allowlist, thresholds and licence
exemptions, so they no longer depend on the visibility of that repo.

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