mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
8d31b533a2
Co-authored-by: henrymercer <14129055+henrymercer@users.noreply.github.com>
1.2 KiB
1.2 KiB
PR Checks
This folder contains the workflow generator that must be run in order to create the workflows used by the CodeQL Action CI. Workflows must be recreated after any change to one of the files in this directory.
Updating workflows
- Install https://github.com/casey/just by whichever way you prefer.
- Run
just update-pr-checksin your terminal.
If you don't want to intall just
Manually run each step in the justfile.
Sync-back automation
When Dependabot updates action versions in the generated workflow files (.github/workflows/__*.yml),
the sync-back automation ensures those changes are properly reflected in the source templates.
Running sync-back manually
To sync action versions from generated workflows back to source templates:
# Dry run to see what would be changed
./pr-checks/sync-back.sh --dry-run --verbose
# Actually apply the changes
./pr-checks/sync-back.sh
The sync-back script (sync-back.py) automatically updates:
- Hardcoded action versions in
pr-checks/sync.py - Action version references in template files in
pr-checks/checks/ - Action version references in regular workflow files
This ensures that the verify-pr-checks.sh test always passes after Dependabot PRs.