Skip to content

ci(workflows): update GitHub CodeQL action - #2401

Merged
josecelano merged 2 commits into
torrust:developfrom
josecelano:20261001-092042-630099462-update-github-workflow-actions
Oct 1, 2026
Merged

josecelano merged 2 commits into
torrust:developfrom
josecelano:20261001-092042-630099462-update-github-workflow-actions

Conversation

@josecelano

@josecelano josecelano commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

GitHub Workflow Actions Update

Summary

Updates github/codeql-action/upload-sarif from v4.38.1 to v4.38.2, which updates the default CodeQL bundle to 2.27.1 without changing the action interface used by this workflow. Updates all taiki-e/install-action references from v2.87.21 to v2.87.22, which refreshes the action's bundled tool versions.

Files/packages touched

  • .github/workflows/security-scan.yaml
  • .github/workflows/coverage.yaml
  • .github/workflows/generate_coverage_pr.yaml
  • .github/workflows/testing.yaml

Organization allowed-actions policy

No organization policy change was required or requested. github/codeql-action is GitHub-owned, and every third-party workflow action is matched by the supplied policy. The current policy is retained unchanged; no administrator update was necessary.

Allowed actions before update

EndBug/export-label-config@v1.*,
EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8,
EndBug/label-sync@v2.*,
Swatinem/rust-cache@v2.*,
actions-rust-lang/setup-rust-toolchain@v1,
alekitto/[email protected],
aquasecurity/trivy-action@v0.*,
codecov/codecov-action@v7.*,
docker/build-push-action@v7.*,
docker/login-action@v4.*,
docker/metadata-action@v6.*,
docker/setup-buildx-action@v4.*,
dtolnay/rust-toolchain@nightly,
dtolnay/rust-toolchain@stable,
endbug/export-label-config@v1,
mozilla-actions/sccache-action@*,
peter-evans/create-pull-request@v5,
rustsec/[email protected],
smorimoto/tune-github-hosted-runner-network@v1,
stefanzweifel/git-auto-commit-action@v4,
swatinem/rust-cache@v2,
taiki-e/install-action@v2.*,
taiki-e/[email protected],
taiki-e/[email protected],

Allowed actions after update

EndBug/export-label-config@v1.*,
EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8,
EndBug/label-sync@v2.*,
Swatinem/rust-cache@v2.*,
actions-rust-lang/setup-rust-toolchain@v1,
alekitto/[email protected],
aquasecurity/trivy-action@v0.*,
codecov/codecov-action@v7.*,
docker/build-push-action@v7.*,
docker/login-action@v4.*,
docker/metadata-action@v6.*,
docker/setup-buildx-action@v4.*,
dtolnay/rust-toolchain@nightly,
dtolnay/rust-toolchain@stable,
endbug/export-label-config@v1,
mozilla-actions/sccache-action@*,
peter-evans/create-pull-request@v5,
rustsec/[email protected],
smorimoto/tune-github-hosted-runner-network@v1,
stefanzweifel/git-auto-commit-action@v4,
swatinem/rust-cache@v2,
taiki-e/install-action@v2.*,
taiki-e/[email protected],
taiki-e/[email protected],

Validation

  • linter yaml
  • git diff --check
  • TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh --format=json
  • TORRUST_GIT_HOOKS_LOG_DIR=.tmp git push josecelano 20261001-092042-630099462-update-github-workflow-actions (installed pre-push hook)
  • The supplied allow-list is unchanged, so all existing entries are retained; every third-party uses: reference is matched, and the updated GitHub-owned CodeQL action does not require an allow-list entry.

@josecelano
josecelano requested a review from a team as a code owner October 1, 2026 08:43
Copilot AI balanced review requested due to automatic review settings October 1, 2026 08:43
da2ce7
da2ce7 previously approved these changes Oct 1, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 689576ee646aee69d09803fa67f9ba84d08a7e49 (round 1). Recomputed from the bytes at this head.

One commit over develop 86392041d, ci(workflows): update GitHub CodeQL action (subject only, no body), changes one line: .github/workflows/security-scan.yaml:90 from github/codeql-action/[email protected] to @v4.38.2. The tree's only github/codeql-action reference moves to the action's current release.

  • Skill walk (update-github-workflow-actions v1.1): the explicit version format is kept, the single reference is updated, # skill-link is present at line 3, the branch carries the dated name, and the body follows the template. A commit body is required only "When step 5 required an organization policy update", and none was required here.
  • Release notes: v4.38.2 (2026-09-24) carries one note, which moves the default CodeQL bundle to 2.27.1. This step only uploads trivy-results.sarif through sarif_file, so the interface claim holds, and no runtime change is expected for this workflow.
  • Inventory: every pinned reference at this head matches its latest release in evidence except taiki-e/install-action, pinned at v2.87.21 in four places with v2.87.22 available.
  • Records: the title equals the Conventional Commits subject and there are no trailers. The diff only changes the value: indentation, if: always() and the with: block are unchanged. The tag v4.38.2 exists. The branch merges into develop cleanly.
  • Allowlist: the before and after blocks are byte-identical (24 patterns), and every third-party uses: reference at this head matches one of them. The no-change statement is the maintainer's and agrees with the listed patterns.

Findings

  • [Suggestion][F1] taiki-e/install-action stays one release behind (inline; non-blocking).

Checked, no finding

  • Subject naming one action: step 9 asks for a Conventional Commit. The Quick Reference subject is a command example, and the narrower subject accurately names the one action changed.
  • No commit body: step 9 makes the allowlists in the commit body conditional on a policy update, and no update was required.
  • Template: Summary, Files/packages touched, policy statement with both blocks, and Validation are all present. The three command lines match the template, and the set-based line agrees with the recomputed pattern match.
  • Dependabot #2369 proposes the same bump and is not referenced. It becomes redundant on merge, and the skill leaves notification PRs outside this change.
  • fetch-depth: 0 (step 7) does not apply: this workflow compares no Git revisions.

Checks

  • Loop gate: not run at this head. The loop's compute hub is being replaced today, so the pre-commit-profile gate, linter yaml and git diff --check were not executed by the loop; the one-line value change was checked structurally instead (indentation, the if: and with: lines, and the tag's existence).
  • CI: 21 check runs at this head: 16 success, 4 skipped, 0 failed, 1 still running: Security Scan.

Comment thread .github/workflows/security-scan.yaml Resolved
@da2ce7

da2ce7 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

ACK 689576e — value-only bump of security-scan.yaml:90 upload-sarif to the existing v4.38.2 tag, with skill walk, release notes, inventory, allowlist blocks and records recomputed at this head

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The release exists, preserves the action interface, and follows the repository’s explicit-version convention.

Review effort: Balanced
Findings: None

What changed in this PR

Updates the CodeQL SARIF uploader to the latest v4 patch release.

Changes:

  • Bumps upload-sarif from v4.38.1 to v4.38.2.
  • Adopts the default CodeQL bundle 2.27.1.
File Description
.github/​workflows/​security-scan.yaml Updates the CodeQL SARIF upload action.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano josecelano self-assigned this Oct 1, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 9e0ce339eea447d0c9e400d83a6bbdc50a86da33 (round 2, delta over round 1). Recomputed from the bytes at this head.

Since round 1 the head has one more commit, ci(workflows): update install action (subject only), and it takes F1. taiki-e/install-action moves from v2.87.21 to v2.87.22 at coverage.yaml:51, generate_coverage_pr.yaml:91 and :188, and testing.yaml:80. The first commit is unchanged. The PR body was edited at 09:19Z, after this round's capture, so that the Summary names both actions and Files/packages touched lists all four workflows; the title still names one action.

  • Diff: five uses: lines in four files, value-only, with keys and indentation unchanged. The merge base is still develop 86392041d. No @v2.87.21 or @v4.38.1 remains, and the tags v2.87.22 and v4.38.2 exist.
  • Release notes: v2.87.22 (2026-09-29) only moves the @latest versions of typos, tombi, prek, mise, kache, gungraun-runner, cargo-tarpaulin, cargo-leptos and cargo-binstall. These steps install grcov, cargo-llvm-cov and cargo-nextest, none of which is listed, so no installed tool version is expected to change.
  • Inventory: none behind. Every pinned reference matches its latest release in evidence.
  • Commits: both subjects are Conventional and in time order (08:25Z, 09:10Z), with no body or trailers. No policy update was required, so step 9 asks for no allowlists in a commit body.
  • Allowlist: the blocks are unchanged and identical. taiki-e/install-action@v2.* covers v2.87.22, and every third-party reference still matches.
  • Records: the edited body's Summary and Files/packages touched match the head (two actions, four files; the sentence that v2.87.22 "refreshes the action's bundled tool versions" matches the notes). The title names one of the two actions, and the merge commit copies it (F2).

Findings

  • [Nit][F2] The title names only the CodeQL action (inline; non-blocking).

Checked, no finding

  • Second subject ci(workflows): update install action: step 9 asks for a Conventional Commit, so it is allowed, as in round 1.
  • # skill-link: update-github-workflow-actions is at line 3 of all four touched workflows.
  • The policy statement and the Validation lines remain true at this head.
  • F1 is taken; replied on its thread and resolved.
  • The one-file list the body carried at the capture was corrected by the body edit at 09:19Z before this review was posted, so nothing stands against the records.

Checks

  • Loop gate: queued on the loop's re-provisioned hub at this head and not finished at posting; its result follows as a comment. The five-line value change was checked structurally (indentation, the surrounding keys, and both tags' existence).
  • CI: 18 check runs at this head: 10 success, 2 skipped, 0 failed, 6 still running.

- id: tools
name: Install Tools
uses: taiki-e/[email protected].21
uses: taiki-e/[email protected].22

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F2] Title names only the CodeQL action

The title ci(workflows): update GitHub CodeQL action becomes the merge commit subject, but this PR now also updates taiki-e/install-action. Retitling it ci(workflows): update GitHub Actions would cover both. That is the skill's Quick Reference subject and the title #2365 used. The commits need no change.

@da2ce7

da2ce7 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

ACK 9e0ce33 — value-only bumps of upload-sarif to v4.38.2 and install-action to v2.87.22 in four places, with release notes, inventory, allowlist blocks and the edited PR body recomputed at this head

@da2ce7

da2ce7 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Loop gate at 9e0ce339eea447d0c9e400d83a6bbdc50a86da33 (the result promised in the round-2 review): the pre-commit-profile gate (pre-commit.sh --format=json) passed, exit 0, 45 s; clippy-allow-reasons --base-ref 86392041d exit 0; linter yaml "All YAML files passed linting!" exit 0; git diff --check 86392041d HEAD exit 0; worktree unchanged after the run. Nothing changes in the review.

@josecelano

Copy link
Copy Markdown
Member Author

ACK 9e0ce33

@josecelano
josecelano merged commit 474acc4 into torrust:develop Oct 1, 2026
22 checks passed
josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Oct 30, 2026
…cible and the CI total consistent

Review findings F20 and F21 of PR torrust#2690 (review 5713751044, submitted
2026-10-30 14:28:48 UTC), still unprocessed when that pull request merged at
16:24:59 UTC.

- The merge list used `--since=2026-10-01`, which takes the time of day of the
  run: replayed late in the day it omits torrust#2397, torrust#2400 and torrust#2401, not two merges
  as the evidence said. The commands now use `--since=2026-10-01T00:00:00Z`,
  which reproduces exactly the 189 rows of `evidence/ci-to-merge.tsv`.
- The OS Compatibility row is 133.7 runner-hours (24.765 minutes mean x 324 / 60),
  not 133.8, and the total is stated as the unrounded sum rounded once (567.1);
  the comparison row said 567.0.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
josecelano added a commit that referenced this pull request Nov 3, 2026
…d correct the post-merge review findings of PR 2690

64c1a24 docs(pr-reviews): [#2547] record the third review round of PR 2693 (josecelano-bot)
014c0f4 docs(pr-reviews): [#2547] attribute the F5 re-check reply to its owning review (josecelano-bot)
6004de7 docs(pr-reviews): [#2547] record the second review round of PR 2693 (josecelano-bot)
1d813fe docs(pr-reviews): [#2547] keep the pending resolution references parseable (josecelano-bot)
0233869 docs(pr-reviews): [#2547] record the resolution of the PR 2693 review threads (josecelano-bot)
bb5a788 docs(pr-reviews): [#2547] record the review of PR 2693 (josecelano-bot)
892ab8d docs(pr-reviews): [#2547] word the reply-url resolution references accurately (josecelano-bot)
390dbb1 docs(pr-reviews): [#2547] use the reply urls as the pending resolution references (josecelano-bot)
6f30c5f docs(pr-reviews): [#2547] record F20 and F21 as re-raises of F3 (josecelano-bot)
8eaaf8c docs(pr-reviews): [#2547] retain the reviewer-provided ids of F20 to F22 (josecelano-bot)
09b93bc docs(issues): [#2547] refresh the update date of the #2507 spec after the path repair (josecelano-bot)
e396d7f docs(pr-reviews): [#2547] record the post-merge findings F20 to F22 of PR 2690 (josecelano-bot)
f499663 chore(issues): archive closed issue #2547 spec to docs/issues/closed (josecelano-bot)
a4a65f3 docs(issues): [#2547] make the merge-list construction reproducible and the CI total consistent (josecelano-bot)

Pull request description:

  ## Summary

  Follow-up to the merged pull request #2690 (the post-change measurement of issue #2547, which closed on that merge). It carries the three non-blocking findings of da2ce7's approving review 5713751044 that were still unprocessed when #2690 merged, and archives the spec of the closed issue. The maintainer approved this post-merge follow-up in #2690 (comment).

  - **F20** (inline thread on `post-change-evidence.md`): `git log --since=2026-10-01` takes the time of day at which it runs, so the merge list omitted #2397, #2400 and #2401, not two merges as the text said. The commands use `--since=2026-10-01T00:00:00Z`, which lists all three and reproduces exactly the 189 rows of `evidence/ci-to-merge.tsv`. Commit `docs(issues): [#2547] make the merge-list construction reproducible and the CI total consistent`.
  - **F21**: the OS Compatibility row is 133.7 runner-hours (not 133.8), and the total is stated as the unrounded sum (567.05) rounded once to 567.1; the comparison row said 567.0. Same commit. No conclusion of the evidence changes.
  - **F22**: the audit's 13:53 "Started audit" entry placed the 11 replies before the audit began; they ran 13:54:12 to 13:54:34 UTC. An append-only correction is added to `docs/pr-reviews/pr-2690-review/PR-REVIEW.md`; the original entry is kept.
  - The spec of issue #2547 moves to `docs/issues/closed/` (`status: done`), with the live references to the old path updated (commit `chore(issues): archive closed issue #2547 spec to docs/issues/closed`).

  ## Files touched

  - `docs/issues/closed/2547-measure-effect-of-optional-rebases/` (moved from `docs/issues/open/`; evidence and retrospective corrected)
  - `docs/issues/closed/2507-stop-requiring-pull-request-rebases/ISSUE.md` and `docs/pr-reviews/pr-2550-review/PR-REVIEW.md` (path in `related-artifacts`)
  - `docs/pr-reviews/pr-2690-review/PR-REVIEW.md` (rows F20 to F22 and the Processing Log)

  Documentation only; no code changes. `linter all` passes on every commit.

  Review of this pull request (da2ce7, reviews 5715892693 and 5716380696): seven findings, F1 to F7 (F7 continues F5), fixed in six signed commits on top of the three above, plus the commits that record the audit (the audit of this pull request is `docs/pr-reviews/pr-2693-review/PR-REVIEW.md`). F2 required correcting the body of the first commit (`docs(issues): [#2547] make the merge-list construction reproducible and the CI total consistent`), which wrongly said the findings were raised after the merge; **the history was rewritten once** to reword that body (`git rebase -i`, pushed with `--force-with-lease`), keeping every commit, and the final tree is identical to the one before the rewrite.

  ## Related

  Related to #2547 and #2690. The three threads of review 5713751044 stay open until this pull request merges.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  josecelano:
    ACK 64c1a24

Tree-SHA512: 9f4ed2d4bb16499039b77c85ef9d9059dbaa1b275e883176292e53887f4cb18b6f0d6299f3d06efd0726625f997551df7bbe9d364ec3dfee8b95d24fc3225568

This branch was previously deployed

1 inactive deployment
coverage — 9e0ce339 Deployed Oct 1, 2026 by josecelano via Generate Coverage Report #2384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants