Skip to content

Fix cron workflows to skip forks and fix pre-commit permissions#415

Merged
blink1073 merged 4 commits intoCalysto:mainfrom
blink1073:fix-cron-jobs
Mar 23, 2026
Merged

Fix cron workflows to skip forks and fix pre-commit permissions#415
blink1073 merged 4 commits intoCalysto:mainfrom
blink1073:fix-cron-jobs

Conversation

@blink1073
Copy link
Contributor

References

N/A

Description

Prevent scheduled (cron) workflow runs from executing on forked repositories, and fix the pre-commit autoupdate workflow's push permissions.

Changes

  • Add if: github.event_name != 'schedule' || github.repository == 'Calysto/metakernel' guard to all cron-triggered jobs across four workflows (tests, release, codeql, pre-commit-autoupdate)
  • Fix pre-commit autoupdate workflow to use a GitHub App token for checkout and PR creation, resolving 403 permission errors on push
  • Allow test_release job to be skipped in the tests_check alls-green gate

Backwards-incompatible changes

None

Testing

N/A — CI workflow changes only

AI usage

  • Some or all of the content of this PR was generated by AI.
  • The human author has carefully reviewed this PR and run this code.
  • AI tools and models used: Claude Code (claude-opus-4-6)

@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.30%. Comparing base (85d284d) to head (4e96271).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #415   +/-   ##
=======================================
  Coverage   90.30%   90.30%           
=======================================
  Files          51       51           
  Lines        2950     2950           
  Branches      414      414           
=======================================
  Hits         2664     2664           
  Misses        209      209           
  Partials       77       77           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@blink1073 blink1073 merged commit 7b6f093 into Calysto:main Mar 23, 2026
20 checks passed
@blink1073 blink1073 deleted the fix-cron-jobs branch March 23, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant