-
Notifications
You must be signed in to change notification settings - Fork 5
Add wait-for-workflows #1021
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
Add wait-for-workflows #1021
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 |
|---|---|---|
|
|
@@ -2,7 +2,21 @@ name: build | |
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/build.yaml | ||
| - .github/workflows/reusable--*.yaml | ||
| - Dockerfile | ||
| - entrypoint.sh | ||
| - e2e-test/** | ||
| - hack/** | ||
|
Comment on lines
4
to
+11
|
||
| push: | ||
| paths: | ||
| - .github/workflows/build.yaml | ||
| - .github/workflows/reusable--*.yaml | ||
| - Dockerfile | ||
| - entrypoint.sh | ||
| - e2e-test/** | ||
| - hack/** | ||
|
Comment on lines
16
to
19
|
||
| branches: | ||
| - main | ||
| tags: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||||||||
| name: wait-for-workflows | ||||||||||||||||
|
|
||||||||||||||||
| on: | ||||||||||||||||
| pull_request: | ||||||||||||||||
|
|
||||||||||||||||
| jobs: | ||||||||||||||||
| wait-for-workflows: | ||||||||||||||||
| runs-on: ubuntu-slim | ||||||||||||||||
|
||||||||||||||||
| runs-on: ubuntu-slim | |
| runs-on: ubuntu-latest |
Copilot
AI
Jan 27, 2026
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.
This workflow/job doesn’t declare permissions:. The rest of the repo’s workflows explicitly set minimal permissions (e.g. .github/workflows/build.yaml:28-31), and wait-for-workflows-action typically needs API write access (e.g. to create/update check runs). Add explicit permissions at the workflow or job level per the action’s requirements so it won’t fail under restricted default token permissions.
| runs-on: ubuntu-slim | |
| runs-on: ubuntu-slim | |
| permissions: | |
| checks: write | |
| contents: read |
Copilot
AI
Jan 27, 2026
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.
This new workflow doesn’t declare any explicit permissions. In this repo, other workflows/jobs set minimal permissions explicitly (e.g., .github/workflows/build.yaml:28-31, .github/workflows/reusable--build.yaml:22-24). Add an explicit permissions block here (at least contents: read, and whatever else the wait action needs) so behavior doesn’t depend on repository default token permissions.
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.
The path filter includes
e2e-tests/**, but this repository directory ise2e-test/(singular). As written, PRs that changee2e-test/**won’t trigger this workflow.