-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): remediate .github compliance findings — 2026-04-17 audit #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -95,3 +95,34 @@ jobs: | |||||
| - name: Run AgentShield | ||||||
| run: | | ||||||
| npx ecc-agentshield scan --path . --format json --min-severity high | ||||||
|
|
||||||
| secret-scan: | ||||||
| name: Secret scan (gitleaks) | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: read | ||||||
| steps: | ||||||
| - name: Checkout (full history) | ||||||
| # Pin to SHA per Action Pinning Policy (ci-standards.md#action-pinning-policy). | ||||||
| # Look up current SHA: gh api repos/actions/checkout/git/refs/tags/v4 --jq '.object.sha' | ||||||
|
||||||
| # Look up current SHA: gh api repos/actions/checkout/git/refs/tags/v4 --jq '.object.sha' | |
| # Look up current SHA: gh api repos/actions/checkout/git/refs/tags/v6.0.2 --jq '.object.sha' |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,7 +18,7 @@ permissions: {} | |||||
|
|
||||||
| jobs: | ||||||
| claude-code: | ||||||
| uses: petry-projects/.github/.github/workflows/claude-code-reusable.yml@main | ||||||
| uses: petry-projects/.github/.github/workflows/claude-code-reusable.yml@ae9709f4466dec60a5733c9e7487f69dcd004e05 # v1 | ||||||
|
||||||
| uses: petry-projects/.github/.github/workflows/claude-code-reusable.yml@ae9709f4466dec60a5733c9e7487f69dcd004e05 # v1 | |
| uses: petry-projects/.github/.github/workflows/claude-code-reusable.yml@v1 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,14 +1,22 @@ | ||||||
| # Dependency vulnerability audit. | ||||||
| # Detects ecosystems and runs appropriate audit tools (npm, pnpm, Go, Rust, Python). | ||||||
| # Standard: https://github.com/petry-projects/.github/blob/main/standards/dependabot-policy.md#vulnerability-audit-ci-check | ||||||
| # ───────────────────────────────────────────────────────────────────────────── | ||||||
| # SOURCE OF TRUTH: petry-projects/.github/standards/workflows/dependency-audit.yml | ||||||
| # Standard: petry-projects/.github/standards/ci-standards.md#5-dependency-audit-dependency-auditym | ||||||
|
||||||
| # Standard: petry-projects/.github/standards/ci-standards.md#5-dependency-audit-dependency-auditym | |
| # Standard: petry-projects/.github/standards/ci-standards.md#6-dependency-audit-dependency-audityml |
Copilot
AI
Apr 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This stub claims standards/workflows/dependency-audit.yml as the “SOURCE OF TRUTH”, but that template currently uses @v1 (tag) while this file pins the reusable to a commit SHA. Please reconcile this by updating the standards template (and any related docs) to match the SHA-pinning requirement, otherwise future “copy verbatim” adoptions will drift and/or fail the compliance audit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
standards/ci-standards.mdandstandards/workflows/agent-shield.ymlcurrently define the Tier-1 stub as calling the reusable via...@v1. This file now pins to a SHA, which means the “SOURCE OF TRUTH” template and documentation are out of sync with what compliance requires. Please reconcile by updating the standards template/docs (or the audit script) so downstream repos can adopt verbatim without failing audits.