Skip to content

fix(workflow): add protected-files fallback-to-issue for doc-freshness-check#473

Merged
jamesadevine merged 2 commits intomainfrom
copilot/fix-protected-files-issue
May 8, 2026
Merged

fix(workflow): add protected-files fallback-to-issue for doc-freshness-check#473
jamesadevine merged 2 commits intomainfrom
copilot/fix-protected-files-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Summary

The doc-freshness-check workflow fails when its patch includes AGENTS.md because gh-aw classifies agent instruction files as protected, blocking PR creation even though AGENTS.md is in allowed-files.

Adds protected-files: fallback-to-issue to the create-pull-request safe-output config so the workflow creates a review issue instead of failing outright when protected files are in the patch. Lock file recompiled.

safe-outputs:
  create-pull-request:
    max: 1
    protected-files: fallback-to-issue
    allowed-files:
      - AGENTS.md
      # ...

Test plan

  • gh aw compile doc-freshness-check — compiled successfully with 0 errors, 0 warnings
  • Verified frontmatter hash updated in lock file

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.68.1
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.68.1 --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue May 8, 2026 that may be closed by this pull request
…s-check

Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/cc4668a8-0e83-4925-b725-1e2425682e39

Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix documentation freshness check failure due to protected files fix(workflow): add protected-files fallback-to-issue for doc-freshness-check May 8, 2026
Copilot AI requested a review from jamesadevine May 8, 2026 20:42
@jamesadevine jamesadevine marked this pull request as ready for review May 8, 2026 20:42
@jamesadevine jamesadevine merged commit 12e273c into main May 8, 2026
@jamesadevine jamesadevine deleted the copilot/fix-protected-files-issue branch May 8, 2026 20:43
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.

[aw] Documentation Freshness Check failed

2 participants