Skip to content

Check that the fork's GitHub Actions can run in breeze ci audit - #76136

Merged
potiuk merged 5 commits into
apache:mainfrom
Andrushika:ci-audit-fork-actions-checks
Nov 2, 2026
Merged

potiuk merged 5 commits into
apache:mainfrom
Andrushika:ci-audit-fork-actions-checks

Conversation

@Andrushika

@Andrushika Andrushika commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Why

breeze ci audit checks a contributor's fork CI setup before they push. Check 5 passes when the ci-amd.yml workflow in the fork is active.

The fork also has GitHub Actions settings. Check 5 does not read them. Two of these settings stop fork CI even when the workflow is active:

  • Actions is disabled in the fork. Then a push starts no CI run. This happened in my fork. The audit still said ok.
  • Actions allows only the owner's actions. ci-amd.yml uses actions from other repositories. GitHub then stops each run before any job starts.

GitHub can also pause Actions in a fork to reduce wasted compute. The settings then still read as enabled, and GitHub sends no email. This happened in my fork on 2026-11-01. The day before, it had 84 empty runs from the repository's crons. #76243 skips the jobs of these crons in forks, but each cron still creates a run.

What

For contributors who need fork CI, check 5 now reads the fork's Actions settings (GET /repos/<fork>/actions/permissions). It fails when Actions is disabled or limited. It offers the command that enables all actions.

Check 5 also dispatches ci-amd.yml to a ref that cannot exist. GitHub answers "No ref found" when Actions can run, and "Actions has been disabled" when it is paused. The dispatch never starts a run, because git does not allow .. in a ref name.

A new check 8 lists the workflows that only schedule or workflow_run starts. Fork CI runs on push and does not need them, so --fix disables them in the fork. I tested both checks and --fix against my fork.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines

breeze ci audit checked only that the fork's ci-amd.yml workflow is
active. A workflow can be active while GitHub Actions is disabled for
the whole fork: then a push starts no run, and the audit still said ok.
Actions can also allow only the owner's actions or a selected list:
ci-amd.yml uses actions from other repositories, so its runs fail
before any job starts.

For a contributor who needs fork CI, the audit now reads the fork's
Actions settings and fails when Actions is disabled or limited, with
the command that enables all actions. Only the fork's owner can read
these settings, so the fork CI monitor cannot check them.
@github-actions github-actions Bot added the fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. label Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Project CI in use. A maintainer added the use project ci label, so CI for this pull request runs in apache/airflow. It starts on the next push, or when a maintainer closes and reopens this pull request.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@github-actions
github-actions Bot marked this pull request as draft October 31, 2026 13:04
Check 5 used the Actions settings only when Tests (AMD) was active.
A fork whose workflow was inactive, or whose workflow could not be read,
was never told that Actions was disabled or limited. Enabling the
workflow alone still left it unable to run, and the Actions problem
showed up only on a later audit, if at all.

Generated-by: Claude Opus 5
@github-actions

Copy link
Copy Markdown
Contributor

Your CI change needs a maintainer. CI for this pull request runs in your fork, and the workflow runs it starts in apache/airflow are approved automatically while they only run the fork CI gate. This pull request changes files that define what CI runs:

  • dev/breeze/doc/08_ci_tasks.rst
  • dev/breeze/doc/ci/08_fork_ci_for_external_contributors.md
  • dev/breeze/src/airflow_breeze/utils/ci_audit.py
  • dev/breeze/tests/test_ci_audit.py

Such a change can make project CI run on the project's runners, so its workflow runs in apache/airflow wait for a maintainer to review the change and approve them. CI in your fork is not affected, and its result stays visible on this pull request. Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@potiuk
potiuk marked this pull request as ready for review October 31, 2026 14:59
@github-actions
github-actions Bot marked this pull request as draft October 31, 2026 15:04
@potiuk
potiuk marked this pull request as ready for review October 31, 2026 15:59
@github-actions github-actions Bot added the needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci. label Oct 31, 2026
@github-actions
github-actions Bot marked this pull request as draft October 31, 2026 16:06
@Andrushika Andrushika changed the title Check the fork's GitHub Actions settings in breeze ci audit Check that the fork's GitHub Actions can run in breeze ci audit Nov 2, 2026
GitHub can pause GitHub Actions in a fork to reduce wasted compute.
The fork's settings then still read as enabled and ci-amd.yml as
active, so check 5 passed while no push started a run. Check 5 now
dispatches ci-amd.yml to a ref that cannot exist: GitHub answers "No
ref found" when Actions can run and "Actions has been disabled" when
it is paused. Git does not allow ".." in a ref name, so the dispatch
never starts a run.

A fork that enables Actions also gets every cron of the repository,
and each one starts a run there even when its jobs are skipped. The
new check 8 lists the workflows that only a schedule or another
workflow's run starts, and --fix disables the ones still active in
the fork. Fork CI runs on push and does not need them.
@github-actions github-actions Bot added need workflow approval and removed needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci. labels Nov 2, 2026
@potiuk
potiuk marked this pull request as ready for review November 2, 2026 09:52
@potiuk
potiuk enabled auto-merge (squash) November 2, 2026 10:26
@github-actions github-actions Bot added the needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci. label Nov 2, 2026
@github-actions
github-actions Bot marked this pull request as draft November 2, 2026 11:05
auto-merge was automatically disabled November 2, 2026 11:05

Pull request was converted to draft

@Dev-iL Dev-iL added the use project ci Committer override: run project CI for a PR that fork CI would otherwise gate. label Nov 2, 2026
@github-actions github-actions Bot removed the needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci. label Nov 2, 2026
@github-actions
github-actions Bot marked this pull request as ready for review November 2, 2026 13:22
@github-actions github-actions Bot removed the fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. label Nov 2, 2026
@potiuk
potiuk enabled auto-merge (squash) November 2, 2026 15:44
@potiuk
potiuk disabled auto-merge November 2, 2026 15:45
@potiuk
potiuk merged commit 1d5644d into apache:main Nov 2, 2026
159 of 174 checks passed
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

github-actions Bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Nov 2, 2026
… audit (apache#76136)

* Check the fork's GitHub Actions settings in breeze ci audit

breeze ci audit checked only that the fork's ci-amd.yml workflow is
active. A workflow can be active while GitHub Actions is disabled for
the whole fork: then a push starts no run, and the audit still said ok.
Actions can also allow only the owner's actions or a selected list:
ci-amd.yml uses actions from other repositories, so its runs fail
before any job starts.

For a contributor who needs fork CI, the audit now reads the fork's
Actions settings and fails when Actions is disabled or limited, with
the command that enables all actions. Only the fork's owner can read
these settings, so the fork CI monitor cannot check them.

* Report fork Actions settings whatever the CI workflow's state

Check 5 used the Actions settings only when Tests (AMD) was active.
A fork whose workflow was inactive, or whose workflow could not be read,
was never told that Actions was disabled or limited. Enabling the
workflow alone still left it unable to run, and the Actions problem
showed up only on a later audit, if at all.

Generated-by: Claude Opus 5

* Detect a fork paused by GitHub and its idle workflows in breeze ci audit

GitHub can pause GitHub Actions in a fork to reduce wasted compute.
The fork's settings then still read as enabled and ci-amd.yml as
active, so check 5 passed while no push started a run. Check 5 now
dispatches ci-amd.yml to a ref that cannot exist: GitHub answers "No
ref found" when Actions can run and "Actions has been disabled" when
it is paused. Git does not allow ".." in a ref name, so the dispatch
never starts a run.

A fork that enables Actions also gets every cron of the repository,
and each one starts a run there even when its jobs are skipped. The
new check 8 lists the workflows that only a schedule or another
workflow's run starts, and --fix disables the ones still active in
the fork. Fork CI runs on push and does not need them.

---------
(cherry picked from commit 1d5644d)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
aws-airflow-bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Nov 2, 2026
… audit (apache#76136)

* Check the fork's GitHub Actions settings in breeze ci audit

breeze ci audit checked only that the fork's ci-amd.yml workflow is
active. A workflow can be active while GitHub Actions is disabled for
the whole fork: then a push starts no run, and the audit still said ok.
Actions can also allow only the owner's actions or a selected list:
ci-amd.yml uses actions from other repositories, so its runs fail
before any job starts.

For a contributor who needs fork CI, the audit now reads the fork's
Actions settings and fails when Actions is disabled or limited, with
the command that enables all actions. Only the fork's owner can read
these settings, so the fork CI monitor cannot check them.

* Report fork Actions settings whatever the CI workflow's state

Check 5 used the Actions settings only when Tests (AMD) was active.
A fork whose workflow was inactive, or whose workflow could not be read,
was never told that Actions was disabled or limited. Enabling the
workflow alone still left it unable to run, and the Actions problem
showed up only on a later audit, if at all.

Generated-by: Claude Opus 5

* Detect a fork paused by GitHub and its idle workflows in breeze ci audit

GitHub can pause GitHub Actions in a fork to reduce wasted compute.
The fork's settings then still read as enabled and ci-amd.yml as
active, so check 5 passed while no push started a run. Check 5 now
dispatches ci-amd.yml to a ref that cannot exist: GitHub answers "No
ref found" when Actions can run and "Actions has been disabled" when
it is paused. Git does not allow ".." in a ref name, so the dispatch
never starts a run.

A fork that enables Actions also gets every cron of the repository,
and each one starts a run there even when its jobs are skipped. The
new check 8 lists the workflows that only a schedule or another
workflow's run starts, and --fix disables the ones still active in
the fork. Fork CI runs on push and does not need them.

---------
(cherry picked from commit 1d5644d)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Nov 4, 2026
… audit (#76136)

* Check the fork's GitHub Actions settings in breeze ci audit

breeze ci audit checked only that the fork's ci-amd.yml workflow is
active. A workflow can be active while GitHub Actions is disabled for
the whole fork: then a push starts no run, and the audit still said ok.
Actions can also allow only the owner's actions or a selected list:
ci-amd.yml uses actions from other repositories, so its runs fail
before any job starts.

For a contributor who needs fork CI, the audit now reads the fork's
Actions settings and fails when Actions is disabled or limited, with
the command that enables all actions. Only the fork's owner can read
these settings, so the fork CI monitor cannot check them.

* Report fork Actions settings whatever the CI workflow's state

Check 5 used the Actions settings only when Tests (AMD) was active.
A fork whose workflow was inactive, or whose workflow could not be read,
was never told that Actions was disabled or limited. Enabling the
workflow alone still left it unable to run, and the Actions problem
showed up only on a later audit, if at all.

Generated-by: Claude Opus 5

* Detect a fork paused by GitHub and its idle workflows in breeze ci audit

GitHub can pause GitHub Actions in a fork to reduce wasted compute.
The fork's settings then still read as enabled and ci-amd.yml as
active, so check 5 passed while no push started a run. Check 5 now
dispatches ci-amd.yml to a ref that cannot exist: GitHub answers "No
ref found" when Actions can run and "Actions has been disabled" when
it is paused. Git does not allow ".." in a ref name, so the dispatch
never starts a run.

A fork that enables Actions also gets every cron of the repository,
and each one starts a run there even when its jobs are skipped. The
new check 8 lists the workflows that only a schedule or another
workflow's run starts, and --fix disables the ones still active in
the fork. Fork CI runs on push and does not need them.

---------
(cherry picked from commit 1d5644d)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
shahar1 pushed a commit that referenced this pull request Nov 6, 2026
… audit (#76136)

* Check the fork's GitHub Actions settings in breeze ci audit

breeze ci audit checked only that the fork's ci-amd.yml workflow is
active. A workflow can be active while GitHub Actions is disabled for
the whole fork: then a push starts no run, and the audit still said ok.
Actions can also allow only the owner's actions or a selected list:
ci-amd.yml uses actions from other repositories, so its runs fail
before any job starts.

For a contributor who needs fork CI, the audit now reads the fork's
Actions settings and fails when Actions is disabled or limited, with
the command that enables all actions. Only the fork's owner can read
these settings, so the fork CI monitor cannot check them.

* Report fork Actions settings whatever the CI workflow's state

Check 5 used the Actions settings only when Tests (AMD) was active.
A fork whose workflow was inactive, or whose workflow could not be read,
was never told that Actions was disabled or limited. Enabling the
workflow alone still left it unable to run, and the Actions problem
showed up only on a later audit, if at all.

Generated-by: Claude Opus 5

* Detect a fork paused by GitHub and its idle workflows in breeze ci audit

GitHub can pause GitHub Actions in a fork to reduce wasted compute.
The fork's settings then still read as enabled and ci-amd.yml as
active, so check 5 passed while no push started a run. Check 5 now
dispatches ci-amd.yml to a ref that cannot exist: GitHub answers "No
ref found" when Actions can run and "Actions has been disabled" when
it is paused. Git does not allow ".." in a ref name, so the dispatch
never starts a run.

A fork that enables Actions also gets every cron of the repository,
and each one starts a run there even when its jobs are skipped. The
new check 8 lists the workflows that only a schedule or another
workflow's run starts, and --fix disables the ones still active in
the fork. Fork CI runs on push and does not need them.

---------
(cherry picked from commit 1d5644d)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
shahar1 pushed a commit that referenced this pull request Nov 6, 2026
… audit (#76136) (#76307)

* Check the fork's GitHub Actions settings in breeze ci audit

breeze ci audit checked only that the fork's ci-amd.yml workflow is
active. A workflow can be active while GitHub Actions is disabled for
the whole fork: then a push starts no run, and the audit still said ok.
Actions can also allow only the owner's actions or a selected list:
ci-amd.yml uses actions from other repositories, so its runs fail
before any job starts.

For a contributor who needs fork CI, the audit now reads the fork's
Actions settings and fails when Actions is disabled or limited, with
the command that enables all actions. Only the fork's owner can read
these settings, so the fork CI monitor cannot check them.

* Report fork Actions settings whatever the CI workflow's state

Check 5 used the Actions settings only when Tests (AMD) was active.
A fork whose workflow was inactive, or whose workflow could not be read,
was never told that Actions was disabled or limited. Enabling the
workflow alone still left it unable to run, and the Actions problem
showed up only on a later audit, if at all.

Generated-by: Claude Opus 5

* Detect a fork paused by GitHub and its idle workflows in breeze ci audit

GitHub can pause GitHub Actions in a fork to reduce wasted compute.
The fork's settings then still read as enabled and ci-amd.yml as
active, so check 5 passed while no push started a run. Check 5 now
dispatches ci-amd.yml to a ref that cannot exist: GitHub answers "No
ref found" when Actions can run and "Actions has been disabled" when
it is paused. Git does not allow ".." in a ref name, so the dispatch
never starts a run.

A fork that enables Actions also gets every cron of the repository,
and each one starts a run there even when its jobs are skipped. The
new check 8 lists the workflows that only a schedule or another
workflow's run starts, and --fix disables the ones still active in
the fork. Fork CI runs on push and does not need them.

---------
(cherry picked from commit 1d5644d)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Nov 9, 2026
… audit (#76136) (#76307)

* Check the fork's GitHub Actions settings in breeze ci audit

breeze ci audit checked only that the fork's ci-amd.yml workflow is
active. A workflow can be active while GitHub Actions is disabled for
the whole fork: then a push starts no run, and the audit still said ok.
Actions can also allow only the owner's actions or a selected list:
ci-amd.yml uses actions from other repositories, so its runs fail
before any job starts.

For a contributor who needs fork CI, the audit now reads the fork's
Actions settings and fails when Actions is disabled or limited, with
the command that enables all actions. Only the fork's owner can read
these settings, so the fork CI monitor cannot check them.

* Report fork Actions settings whatever the CI workflow's state

Check 5 used the Actions settings only when Tests (AMD) was active.
A fork whose workflow was inactive, or whose workflow could not be read,
was never told that Actions was disabled or limited. Enabling the
workflow alone still left it unable to run, and the Actions problem
showed up only on a later audit, if at all.

Generated-by: Claude Opus 5

* Detect a fork paused by GitHub and its idle workflows in breeze ci audit

GitHub can pause GitHub Actions in a fork to reduce wasted compute.
The fork's settings then still read as enabled and ci-amd.yml as
active, so check 5 passed while no push started a run. Check 5 now
dispatches ci-amd.yml to a ref that cannot exist: GitHub answers "No
ref found" when Actions can run and "Actions has been disabled" when
it is paused. Git does not allow ".." in a ref name, so the dispatch
never starts a run.

A fork that enables Actions also gets every cron of the repository,
and each one starts a run there even when its jobs are skipped. The
new check 8 lists the workflows that only a schedule or another
workflow's run starts, and --fix disables the ones still active in
the fork. Fork CI runs on push and does not need them.

---------
(cherry picked from commit 1d5644d)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-4-test Backport to v3-4-test need workflow approval use project ci Committer override: run project CI for a PR that fork CI would otherwise gate.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants