Harden check-doc-impact against cross-repo auth failures#541
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job check-doc-impact
Harden Jun 1, 2026
check-doc-impact against cross-repo auth failures
dan2k3k4
approved these changes
Jun 2, 2026
dan2k3k4
approved these changes
Jun 2, 2026
dspachos
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
check-doc-impactwas failing when the docs issue creation call toamazeeio/docs.amazee.aihit org SAML enforcement on the token. This caused a non-critical notification step to fail the entire job.Root cause
gh issue list/createin the Open docs issue step can fail due to external token authorization (SAML), even when PR doc-impact detection is correct.Change
continue-on-error: true.Workflow behavior after change
Greptile Summary
This PR adds
continue-on-error: trueto the Open docs issue step indoc-check.yml, making cross-repo issue creation non-blocking when theDOCS_ISSUE_TOKENis rejected by org SAML enforcement.has_matches == 'true'; only the finalgh issue createcall againstamazeeio/docs.amazee.aiis made fault-tolerant.gh issue list) runs inside the same step and with the same token. If the token is unauthorized,gh issue listfails first (withset -e/pipefailactive),EXISTINGstays empty, and the step exits beforegh issue createis reached —continue-on-errorcatches the whole-step failure cleanly and the job proceeds.Confidence Score: 5/5
Safe to merge. The change is a single-line addition to a non-critical notification step and does not affect doc-impact detection or any application code.
The added continue-on-error: true is correctly scoped to the cross-repo issue creation step only. All earlier steps — detection, diff fetch, and LLM draft — remain blocking and unchanged. Failures in the issue step will still appear as warnings in the Actions UI, so they are not invisible. No logic was altered and there is no risk to the repo's main workflows.
No files require special attention.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A([PR merged to main/dev]) --> B[Get changed files] B --> C{Doc-impacting\nfiles changed?} C -- No --> D([Job succeeds — no action]) C -- Yes --> E[Fetch PR diff] E --> F[Draft doc update via amazee.ai LLM] F --> G[Open docs issue\ncontinue-on-error: true] G -- Success --> H([Issue created in\namazeeio/docs.amazee.ai]) G -- SAML / auth failure --> I([Step marked as\nwarning — job still succeeds]) G -- Issue already exists --> J([Skipped — exit 0])Reviews (1): Last reviewed commit: "Handle doc issue creation failures in do..." | Re-trigger Greptile