Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions templates/consumer-repo/.github/workflows/agents-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
github.event_name == 'pull_request_target' &&
steps.eligibility.outputs.should-run == 'true' &&
steps.api_client_base.outputs.available != 'true'
uses: "stranske/Workflows/.github/actions/setup-api-client@6deed4d3937adab2370b4ddf96046ed295efe68f" # v1
uses: "stranske/Workflows/.github/actions/setup-api-client@d68de1904bcdbe16bfe2462b73aa18f41f8a0a47" # v1

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 Refresh the template drift allowlist

When this fallback action pin changes, Health 74 recomputes the normalized template hash for the agents-guard.yml main/template pair. The allowlist entry at config/template-drift-allowlist.txt still records the previous template hash (a157...), while this edited file now hashes to 98e257...; because .github/workflows/health-74-template-drift.yml runs on templates/consumer-repo/.github/workflows/*.yml changes and exits nonzero for unallowlisted drift, this dependency bump will fail that required drift check until pair.10 is refreshed.

Useful? React with πŸ‘Β / πŸ‘Ž.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Locate agents-guard workflow copies =="
fd -a '^agents-guard\.yml$' .github/workflows templates/consumer-repo/.github/workflows || true

echo
echo "== Verify new setup-api-client SHA appears in both workflow trees =="
rg -n --no-heading 'setup-api-client@d68de1904bcdbe16bfe2462b73aa18f41f8a0a47' .github/workflows templates/consumer-repo/.github/workflows || true

echo
echo "== Enumerate setup-api-client refs across agents workflows =="
rg -n --no-heading 'stranske/Workflows/.github/actions/setup-api-client@' --iglob '**/agents-*.yml' .github/workflows templates/consumer-repo/.github/workflows || true

Repository: stranske/Workflows

Length of output: 1297


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Canonical workflow (.github/workflows/agents-guard.yml) ===" 
echo "Lines 100-110 (first setup-api-client ref):"
sed -n '100,110p' .github/workflows/agents-guard.yml

echo
echo "Lines 170-180 (second setup-api-client ref):"
sed -n '170,180p' .github/workflows/agents-guard.yml

echo
echo "=== Consumer template (templates/consumer-repo/.github/workflows/agents-guard.yml) ==="
echo "Lines 110-120 (first setup-api-client ref):"
sed -n '110,120p' templates/consumer-repo/.github/workflows/agents-guard.yml

echo
echo "Lines 180-190 (second setup-api-client ref):"
sed -n '180,190p' templates/consumer-repo/.github/workflows/agents-guard.yml

Repository: stranske/Workflows

Length of output: 2394


Update the canonical workflow first, then sync both trees.

The digest bump for setup-api-client was applied only to templates/consumer-repo/.github/workflows/agents-guard.yml (lines 114, 183). Per policy, agents-*.yml fixes must be made in the canonical .github/workflows/agents-guard.yml source first, then synchronized to the consumer template. Apply the digest update to .github/workflows/agents-guard.yml at the corresponding lines, then mirror the change to the template.

πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@templates/consumer-repo/.github/workflows/agents-guard.yml` at line 114, The
digest bump for the setup-api-client action at lines 114 and 183 was applied
only to the template file
templates/consumer-repo/.github/workflows/agents-guard.yml, but must be applied
to the canonical source file first. Update the setup-api-client action reference
with the same digest (d68de1904bcdbe16bfe2462b73aa18f41f8a0a47) in the canonical
.github/workflows/agents-guard.yml file at lines 114 and 183, then synchronize
both occurrences to the template file to maintain consistency between the source
and consumer repository.

Source: Coding guidelines

with:
secrets: ${{ toJSON(secrets) }}
github_token: ${{ github.token }}
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
steps.eligibility.outputs.should-run == 'true' &&
github.event_name == 'pull_request' &&
steps.api_client_head.outputs.available != 'true'
uses: "stranske/Workflows/.github/actions/setup-api-client@6deed4d3937adab2370b4ddf96046ed295efe68f" # v1
uses: "stranske/Workflows/.github/actions/setup-api-client@d68de1904bcdbe16bfe2462b73aa18f41f8a0a47" # v1
with:
secrets: ${{ toJSON(secrets) }}
github_token: ${{ github.token }}
Expand Down
Loading