Feat: Add Automatic weekly CodeQL Pack Updating Job#118
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request introduces an automated workflow to update CodeQL pack dependencies on a weekly schedule. The key changes include scheduling the update job using a cron expression, setting up and running CodeQL upgrades for all directories containing a qlpack.yml file, and creating a pull request to commit these updates.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Adds the two workflows needed to close the gap identified while reviewing PR #118 (codeql pack upgrade weekly cron): - detect-codeql-release.yml: weekly (+ workflow_dispatch) tripwire that compares .codeqlversion against github/codeql-cli-binaries' latest release and keeps a single tracking issue open/updated while behind, auto-closing it once caught up. Never opens a PR itself. - update-codeql-version.yml: workflow_dispatch with a codeql_version input. Bumps .codeqlversion, runs codeql pack upgrade <dir> for every pack, and opens a PR via the same GitHub App token pattern as update-release.yml so CI actually runs on it (a GITHUB_TOKEN-authored PR would not trigger downstream workflows). Together these cover detection + mechanical dependency refresh; fixing compile/test breakage from upstream API changes and bumping each pack's own version: still needs a human (or delegated Copilot coding agent) - documented as a 3-step process in CONTRIBUTING.md. Rewrites CONTRIBUTING.md's "Updating the pinned CodeQL CLI/library version" section to describe this new process and adds reference-style links for both new workflows and codeql-cli-binaries. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Thanks for opening this, @GeekMasher - the weekly While digging into the release/publish process (see #160's CONTRIBUTING.md rewrite) we ran into a few gaps this PR's current form wouldn't cover on its own:
#160 adds two workflows that build directly on your approach:
Once #160 merges, I'll close this one out as superseded - flagging now so you have visibility before that happens. Really appreciate you kicking off this thread, it made the gaps in the process much clearer. |
This pull request introduces a new GitHub Actions workflow to automate updating CodeQL pack dependencies across the repository. The workflow is scheduled to run weekly and can also be triggered manually.
Automation of CodeQL dependency updates:
.github/workflows/update-deps.yml: Added a workflow that finds allqlpack.ymlfiles, runscodeql pack upgradein their directories, and creates a pull request with the updates. The workflow runs every Monday at 14:00 UTC or can be triggered manually, and uses thepeter-evans/create-pull-requestaction to automate PR creation.