Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions .github/workflows/agent-shield.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
# ─────────────────────────────────────────────────────────────────────────────
# SOURCE OF TRUTH: petry-projects/.github/standards/workflows/agent-shield.yml
# Standard: petry-projects/.github/standards/agent-standards.md
# Reusable: petry-projects/.github/.github/workflows/agent-shield-reusable.yml
# This file is a THIN CALLER STUB. The AgentShield CLI scan and the
# org-specific structural checks live in the reusable workflow above.
#
# AGENTS — READ BEFORE EDITING:
# • This file is a THIN CALLER STUB. The AgentShield CLI scan and the
# org-specific structural checks live in the reusable workflow above.
# • You MAY change: the `with:` inputs (min-severity, agentshield-version,
# required-files, org-standards-ref) — only if your repo genuinely needs
# a different policy.
# • You MUST NOT change: trigger events, the `uses:` line, or the job name
# (used as a required status check).
# • If you need different behaviour beyond the inputs, open a PR against
# the reusable in the central repo.
# ─────────────────────────────────────────────────────────────────────────────
#
# AgentShield — thin caller for the org-level reusable.
# To adopt: copy this file to .github/workflows/agent-shield.yml in your repo.
# Agents may adjust input parameters (min-severity, agentshield-version,
# required-files, org-standards-ref) if their repo has specific needs.
# Everything else must remain unchanged.

Comment on lines +1 to +7
name: AgentShield

on:
Expand All @@ -30,4 +18,9 @@ permissions:

jobs:
agent-shield:
uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@376a4fcb1117444595e3e702fa450873d0e54310 # v2
uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@d3d768dabb7f28cc63283cdfe48630da53700e50 # v1
with:
min-severity: medium
agentshield-version: latest

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin the AgentShield CLI version

This overrides the reusable workflow’s pinned ecc-agentshield default with latest, so the required AgentShield check can change behavior or start failing when a new npm release is published, without any change in this repo. In CI contexts where this check gates merges, keep this input on a concrete version so scan policy and failures remain reproducible.

Useful? React with 👍 / 👎.

required-files: ''
org-standards-ref: petry-projects/.github/main

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use an org reference regex that matches AGENTS.md

With the v1 reusable workflow, org-standards-ref is passed directly to grep -qiE "$ORG_REF" AGENTS.md in the “Validate cross-references” step. The current repository’s AGENTS.md references petry-projects/.github/blob/main/..., so this new value (petry-projects/.github/main) does not match and the AgentShield job will fail on every push/PR even though the required org-standards link is present.

Useful? React with 👍 / 👎.

5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,3 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.dev-lead/
.dev-lead/
.dev-lead/
.dev-lead/
.dev-lead/
.dev-lead/
Loading