Skip to content

ci: verify manual allowlist PRs via verify-action-build#745

Merged
potiuk merged 2 commits intomainfrom
verify-manual-action-workflow
Apr 19, 2026
Merged

ci: verify manual allowlist PRs via verify-action-build#745
potiuk merged 2 commits intomainfrom
verify-manual-action-workflow

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented Apr 19, 2026

Summary

Adds a workflow that runs verify-action-build on PRs which manually add a new action to the allow list — i.e. those touching actions.yml or approved_patterns.yml and not authored by dependabot. Example PR this would have caught: #739.

Mirrors the existing verify_dependabot_action.yml pattern:

  • pull_request trigger (not pull_request_target — avoids the privilege-escalation risk).
  • Read-only permissions (contents: read, pull-requests: read).
  • The verify-action-build --ci --from-pr $N script exits with rc, and that becomes the status check on the PR.
  • ::stop-commands:: wrapper to neutralize any workflow-command strings that might appear in action diffs.
  • persist-credentials: false on checkout.

Skipped for dependabot-authored PRs (already covered by verify_dependabot_action.yml).

Test plan

  • On this PR (no actions.yml change) — the workflow should not run.
  • Simulate by opening a dummy PR that edits actions.yml — the workflow should run and pass/fail according to the verify result.
  • Dependabot PRs that also touch actions.yml / approved_patterns.yml — should be skipped by the if: guard (the dependabot workflow handles them).

Adds a workflow that runs verify-action-build on PRs which touch
actions.yml or approved_patterns.yml and are not authored by dependabot.
Mirrors the existing verify_dependabot_action.yml pattern — regular
pull_request trigger with read-only permissions, exits with the verify
script's rc so the status check reflects pass/fail.

Generated-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@potiuk potiuk requested review from dave2wave and raboof April 19, 2026 17:24
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Apr 19, 2026

cc: @dave2wave @raboof -> this one will run the check also on the manual PR from people.

Copy link
Copy Markdown
Member

@dave2wave dave2wave left a comment

Choose a reason for hiding this comment

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

LGTM - is this documented in the README?

@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Apr 19, 2026

LGTM - is this documented in the README?

Good point! Let me add it and update AGENTS.md to always update the docs.

…eatures

- README: rewrite the "Automated Verification in CI" section to list both
  verify workflows (dependabot + manual) and describe their triggers,
  permissions, and pass/fail semantics.
- AGENTS.md: add a "Documentation" section requiring user-visible changes
  (workflows, scripts, CLI flags) to ship with reference-doc updates in
  the same PR.

Generated-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Apr 19, 2026

Updatedd the docs and agents instruction to not happen next time !

@potiuk potiuk merged commit 40b6028 into main Apr 19, 2026
8 checks passed
@potiuk potiuk deleted the verify-manual-action-workflow branch April 19, 2026 18:08
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.

2 participants