-
Notifications
You must be signed in to change notification settings - Fork 14
H-6402: Add preflight workflow #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Preflight | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - ".github/workflows/preflight.yml" | ||
| pull_request_target: | ||
| types: [opened, synchronize, reopened, edited] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stale approvals job triggers unnecessarily on PR editsMedium Severity The Additional Locations (2) |
||
| merge_group: | ||
|
|
||
| jobs: | ||
| stale-approvals: | ||
| name: Stale approvals | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| # Required by the reusable workflow to extract job_workflow_ref from the | ||
| # OIDC token to resolve the correct checkout ref for the composite action. | ||
| # see: https://github.com/actions/toolkit/issues/1264 | ||
| # TODO: Remove once $/ syntax is available | ||
| # see: https://github.com/orgs/community/discussions/26245#discussioncomment-15601440 | ||
| id-token: write | ||
| pull-requests: write | ||
| uses: hashintel/.github/.github/workflows/dismiss-stale-approvals.yml@52c4a1f5fa1c72f30dfa02b00a6cbf0c89c1ea8a | ||
|
|
||
| dependencies: | ||
| name: Dependencies | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| uses: hashintel/.github/.github/workflows/dependencies.yml@52c4a1f5fa1c72f30dfa02b00a6cbf0c89c1ea8a | ||
|
|
||
| todo-comments: | ||
| name: Todo comments | ||
| permissions: | ||
| contents: read | ||
| uses: hashintel/.github/.github/workflows/todo-comments.yml@52c4a1f5fa1c72f30dfa02b00a6cbf0c89c1ea8a | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The called reusable workflow Severity: medium 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this workflow runs on
pull_requestwhenpreflight.ymlitself changes, the workflow definition from the PR branch can be executed; please double-check that this can’t be used to run newly-added steps with elevated job permissions (notablyid-token: write/pull-requests: write). If this is intended only as a self-test trigger, consider ensuring thepull_requestpath is effectively non-privileged for untrusted changes.Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.