Skip to content

Skip scheduled workflows in forks that enable Actions - #76243

Merged
potiuk merged 1 commit into
mainfrom
guard-fork-scheduled-workflows
Nov 1, 2026
Merged

potiuk merged 1 commit into
mainfrom
guard-fork-scheduled-workflows

Conversation

@potiuk

@potiuk potiuk commented Nov 1, 2026

Copy link
Copy Markdown
Member

Contributors enable Actions on their forks for fork CI (AIP-120), and every cron in the repository then fires in the fork too. The canaries already skip forks (fork_schedule), and the high-frequency crons (spot-interruption-notice, auto-approve-workflow-runs, fork-ci-monitor, mirror-hardened-base-images) are already guarded. Ten other scheduled workflows were not, so CodeQL and the maintenance jobs ran daily in each enabled fork on the contributor's minutes. GitHub has started disabling Actions on such forks to reduce wasted compute.

This adds a job-level github.repository == 'apache/airflow' guard to them. Workflows with other triggers combine it with github.event_name != 'schedule', so pushes, pull requests and manual dispatches still run in forks. The fork CI document now says that new scheduled workflows need the same guard.


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

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

🤖 Generated with Claude Code

@potiuk
potiuk enabled auto-merge (squash) November 1, 2026 20:00
Contributors enable Actions on their forks for fork CI (AIP-120), and every cron in the repository then fires there as well. Unguarded scheduled workflows ran CodeQL and the maintenance jobs daily in each fork, using the contributor's minutes; GitHub has started disabling Actions on such forks as wasted compute.

Generated-by: Claude Opus 5
@potiuk
potiuk force-pushed the guard-fork-scheduled-workflows branch from 2321e85 to 00c77ca Compare November 1, 2026 20:13
@potiuk
potiuk disabled auto-merge November 1, 2026 20:18
@potiuk
potiuk merged commit a5ab822 into main Nov 1, 2026
70 of 74 checks passed
@potiuk
potiuk deleted the guard-fork-scheduled-workflows branch November 1, 2026 20:19
@potiuk potiuk added this to the Airflow 3.4.1 milestone Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 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

potiuk added a commit that referenced this pull request Nov 1, 2026
…6243) (#76253)

Contributors enable Actions on their forks for fork CI (AIP-120), and every cron in the repository then fires there as well. Unguarded scheduled workflows ran CodeQL and the maintenance jobs daily in each fork, using the contributor's minutes; GitHub has started disabling Actions on such forks as wasted compute.
(cherry picked from commit a5ab822)


Generated-by: Claude Opus 5

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Nov 4, 2026
…6243) (#76253)

Contributors enable Actions on their forks for fork CI (AIP-120), and every cron in the repository then fires there as well. Unguarded scheduled workflows ran CodeQL and the maintenance jobs daily in each fork, using the contributor's minutes; GitHub has started disabling Actions on such forks as wasted compute.
(cherry picked from commit a5ab822)


Generated-by: Claude Opus 5

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants