Skip to content

Compliance: missing-agent-shield.yml #33

Closed

Description

@don-petry

Compliance Finding

Category: ci-workflows
Severity: error
Check: missing-agent-shield.yml

Detail

Required workflow agent-shield.yml is missing

Standard Reference

standards/ci-standards.md#required-workflows

Remediation

Please review the linked standard and bring this repository into compliance.

See the full standards documentation for implementation guidance.


This issue was automatically created by the weekly compliance audit.

Activity

  1. claude commented on Apr 6, 2026

    @claude

    Claude finished @don-petry's task in 50s —— View job


    Compliance: missing-agent-shield.yml

    • Gather context and read CLAUDE.md
    • Review the agent-shield.yml standard
    • Create agent-shield.yml workflow file — blocked (see below)

    Unable to Complete This Task

    I'm unable to create or modify files in the .github/workflows directory due to GitHub App permission restrictions. Workflow files require special permissions that aren't available to me in this context.

    You can find more information and potential workarounds in the FAQ.

    Manual Steps to Resolve

    To fix this compliance finding, you'll need to manually create .github/workflows/agent-shield.yml. The standard reference is at the ci-standards.md#required-workflows in the petry-projects/.github repository — review that document for the exact required content of the workflow file.

  2. don-petry commented on Apr 6, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-04-06)

    This finding is still open.

    Detail: Required workflow agent-shield.yml is missing

    Standard: standards/ci-standards.md#required-workflows

  3. don-petry commented on Apr 6, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-04-06)

    This finding is still open.

    Detail: Required workflow agent-shield.yml is missing

    Standard: standards/ci-standards.md#required-workflows

  4. don-petry commented on Apr 6, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-04-06)

    This finding is still open.

    Detail: Required workflow agent-shield.yml is missing

    Standard: standards/ci-standards.md#required-workflows

  5. don-petry commented on Apr 6, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-04-06)

    This finding is still open.

    Detail: Required workflow agent-shield.yml is missing

    Standard: standards/ci-standards.md#required-workflows

  6. don-petry commented on Apr 6, 2026

    @don-petry
    ContributorAuthor

    Claude finished @don-petry's task in 2m 17s —— View job


    Compliance: missing-agent-shield.yml

    • Gather context and read existing workflows
    • Review pattern from claude.yml (org-level thin-caller convention)
    • Create agent-shield.yml workflow file locally
    • Push changes — blocked (see below)

    Unable to Push Workflow File

    The GitHub App running this job does not have the workflows permission required to push files to .github/workflows/. This is a GitHub security restriction.

    refusing to allow a GitHub App to create or update workflow .github/workflows/agent-shield.yml without workflows permission

    You can find more information and potential workarounds in the FAQ.

    Manual Steps to Resolve

    Create .github/workflows/agent-shield.yml with the following content (following the same org-level thin-caller pattern as claude.yml):

    # Agent Shield — thin caller that delegates to the org-level reusable workflow.
    # All logic is maintained centrally in agent-shield-reusable.yml.
    # Standard: https://github.com/petry-projects/.github/blob/main/standards/ci-standards.md#required-workflows
    name: Agent Shield
    
    on:
      push:
        branches: [main]
      pull_request:
        branches: [main]
        types: [opened, reopened, synchronize]
    
    permissions: {}
    
    jobs:
      agent-shield:
        uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@main
        secrets: inherit
        permissions:
          contents: read
          pull-requests: read
          issues: read

    Note: If the reusable workflow requires different triggers or permissions, refer to the exact spec at ci-standards.md#required-workflows.

  7. don-petry commented on Apr 7, 2026

    @don-petry
    ContributorAuthor

    Claude finished @don-petry's task in 1m 34s —— View job


    Compliance: missing-agent-shield.yml

    • Gather context and review previous attempts
    • Review existing workflows (claude.yml thin-caller pattern)
    • Create agent-shield.yml workflow file locally
    • Push changes — blocked (see below)

    Unable to Push Workflow File

    The GitHub App running this job does not have the workflows permission required to push files to .github/workflows/. This is a persistent GitHub security restriction across all attempts.

    refusing to allow a GitHub App to create or update workflow .github/workflows/agent-shield.yml without workflows permission

    You can find more information and potential workarounds in the FAQ.

    Manual Steps to Resolve

    Create .github/workflows/agent-shield.yml with the following content (following the same org-level thin-caller pattern as claude.yml):

    # Agent Shield — thin caller that delegates to the org-level reusable workflow.
    # All logic is maintained centrally in agent-shield-reusable.yml.
    # Standard: https://github.com/petry-projects/.github/blob/main/standards/ci-standards.md#required-workflows
    name: Agent Shield
    
    on:
      push:
        branches: [main]
      pull_request:
        branches: [main]
        types: [opened, reopened, synchronize]
    
    permissions: {}
    
    jobs:
      agent-shield:
        uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@main
        secrets: inherit
        permissions:
          contents: read
          pull-requests: read
          issues: read

    Note: To grant the GitHub App the workflows permission and allow it to manage workflow files automatically in the future, see the FAQ.

  8. don-petry commented on Apr 7, 2026

    @don-petry
    ContributorAuthor

    Claude finished @don-petry's task in 2m 0s —— View job • claude/issue-33-20260407-1732 • [Create PR ➔](https://github.com/petry-projects/ContentTwin/compare/main...claude/issue-33-20260407-1732?quick_pull=1&title=Issue%20%2333%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%2333%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Compliance: missing-agent-shield.yml

    • Gather context and review previous attempts
    • Review existing claude.yml workflow for pattern reference
    • Create agent-shield.yml workflow file
    • Commit and push changes
    • Create pull request → #49
    • Self-review PR — no issues found
    • Tag @don-petry for review (no CODEOWNERS file found)

    The agent-shield.yml workflow has been created and pushed successfully. PR #49 is ready for review.

    What was created: .github/workflows/agent-shield.yml — a thin caller following the same org-level reusable pattern as claude.yml, delegating to petry-projects/.github/.github/workflows/agent-shield-reusable.yml@main.

    Note: Previous attempts were blocked by missing workflows permission on the GitHub App token. This attempt succeeded because the current token has the workflow scope.
    ·

  9. added a commit that references this issue on Apr 7, 2026
    77521df
  10. don-petry commented on Apr 8, 2026

    @don-petry
    ContributorAuthor

    Claude finished @don-petry's task in 1m 4s —— View job • claude/issue-33-20260408-2242 • Create PR ➔


    Compliance: missing-agent-shield.yml

    • Gather context and read CLAUDE.md
    • Fetch agent-shield.yml template from petry-projects/.github/standards/workflows/
    • Create .github/workflows/agent-shield.yml from template (verbatim copy)
    • Commit and push changes
    • Create pull request → #54
    • Self-review PR — no issues found; single file addition, verbatim from standard template
    • Tagged @don-petry (CODEOWNERS) for review

    The agent-shield.yml workflow has been created and pushed. PR #54 is ready for review.

    What was created: .github/workflows/agent-shield.yml — copied verbatim from petry-projects/.github/standards/workflows/agent-shield.yml. It's a thin caller stub delegating all logic to petry-projects/.github/.github/workflows/agent-shield-reusable.yml@v1.
    • claude/issue-33-20260408-2242 •

  11. added a commit that references this issue on Apr 8, 2026
    b2fcb3c
  12. added a commit that references this issue on Apr 8, 2026
    65f2372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compliance-auditAutomated compliance audit finding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions