Skip to content

build(codeql): coordinate CodeQL Action 4.37.8 lifecycle - #1026

Closed
dependabot[bot] wants to merge 24 commits into
developfrom
dependabot/github_actions/develop/github/codeql-action/init-4.37.8
Closed

build(codeql): coordinate CodeQL Action 4.37.8 lifecycle#1026
dependabot[bot] wants to merge 24 commits into
developfrom
dependabot/github_actions/develop/github/codeql-action/init-4.37.8

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 25, 2026

Copy link
Copy Markdown
Contributor

Superseded by canonical lifecycle owner #780

This branch is closed unmerged only after its unique behavior was reconstructed on the canonical CodeQL lifecycle branch rather than discarded.

Exact predecessor identity at succession review:

Exact successor identity at transfer:

Technical succession evidence

#1026's semantic delta had four responsibilities. Each is now present in #780/current successor:

  1. Atomic CodeQL lifecycle. build(codeql): coordinate CodeQL Action 4.37.8 lifecycle #1026 coordinated init, autobuild, analyze, and both upload-sarif call sites on v4.37.8. fix(security): keep every CodeQL Action phase on one revision #780 now uses the strictly newer reviewed immutable v4.37.9 execution commit cdf488f595d80d6e07e03d4674febd5ab45fa938 across every checked-in phase. Its broad test_codeql_action_revision_contract.py scans all workflow YAML, catches malformed/mutable refs, requires one exact SHA plus matching annotation, and separately requires init/autobuild/analyze atomicity.
  2. Dependabot label repair. build(codeql): coordinate CodeQL Action 4.37.8 lifecycle #1026 changed the nonexistent github-actions configured label to repository taxonomy area: ci-cd. fix(security): keep every CodeQL Action phase on one revision #780 preserves that exact config behavior in .github/dependabot.yml and carries test_dependabot_label_contract.py.
  3. PR Scorecard evidence/trust boundary. build(codeql): coordinate CodeQL Action 4.37.8 lifecycle #1026 added ordinary pull_request execution for develop/main, PR/default-branch evidence guards, default-branch-only publish_results, and trusted normalization-script checkout from github.event.pull_request.base.sha. fix(security): keep every CodeQL Action phase on one revision #780 preserves each behavior and carries test_scorecard_pr_code_scanning_contract.py; it does not use pull_request_target.
  4. Version/uploader regression coverage. build(codeql): coordinate CodeQL Action 4.37.8 lifecycle #1026's narrower test_codeql_action_version_contract.py and test_codeql_upload_sarif_version_contract.py are subsumed by fix(security): keep every CodeQL Action phase on one revision #780's all-workflow revision guard, while its two unique non-version contracts are preserved as separate tests above.

#780 also ordinary-merged current protected develop lineage before applying its GREEN repair, so this succession does not rely on stale-base text or predecessor evidence.

Fresh exact-head workflows on #780 are still non-terminal and an independent non-author exact-head approval is absent. Therefore #780 remains Draft; queued/pending/skipped-required/cancelled/failed/neutral/stale/predecessor evidence remains non-passing.

Relates to #966.

@dependabot @github

dependabot Bot commented on behalf of github Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: github-actions. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 25, 2026
@dependabot
dependabot Bot requested a review from seonghobae as a code owner August 25, 2026 17:40
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 25, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

Bumps [github/codeql-action/init](https://github.com/github/codeql-action) from 4.37.0 to 4.37.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@99df26d...db488dd)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/github_actions/develop/github/codeql-action/init-4.37.8 branch from 4af856c to 4a3ff13 Compare August 25, 2026 23:07
@seonghobae seonghobae changed the title build(deps): bump github/codeql-action/init from 4.37.0 to 4.37.8 build(codeql): coordinate CodeQL Action 4.37.8 lifecycle Aug 26, 2026
@seonghobae
seonghobae marked this pull request as ready for review August 28, 2026 16:29
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@devin-ai-integration devin-ai-integration Bot 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.

Note

This report is out of date. Scroll down for Devin Review's latest report on this PR.

Devin Review found 2 new potential issues.

Devin Review

Comment on lines +9 to +10
DEFAULT_BRANCH_GUARD = "github.ref == format('refs/heads/{0}', github.event.repository.default_branch)"
PR_OR_DEFAULT_BRANCH = f"github.event_name == 'pull_request' || {DEFAULT_BRANCH_GUARD}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Pull requests remain excluded

Pull-request refs cannot satisfy DEFAULT_BRANCH_GUARD. Removing the explicit event-name condition therefore preserves default-branch-only Scorecard publishing.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +24 to +29
publish_lines = [
line.strip()
for line in contents.splitlines()
if line.strip().startswith("publish_results:")
]
assert publish_lines == [f"publish_results: ${{{{ {DEFAULT_BRANCH_GUARD} }}}}"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Publishing assertion covers every occurrence

The exact publish_lines comparison rejects duplicate or additional publishing settings. A matching fragment elsewhere can no longer satisfy the contract.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Collaborator

@opencode-agent Take the sole-writer lease for existing canonical dependency-security branch dependabot/github_actions/develop/github/codeql-action/init-4.37.8 only if its exact head is still c1f8ccb93db3891cb1c362536e59da399c78d3bc immediately before writing. Refetch protected develop, current head/base, changed files, reviews/threads/checks and abort rather than race incompatible movement.

This branch now intentionally absorbs PR #1119's unique Trivy PR-head contract to converge the backlog: ordinary pull_request for develop/main, persist-credentials: false, v4.37.8 upload-sarif, scripts/checks/verify_trivy_pr_scan.py, its regression harness, and quickcheck wiring. Do NOT create or recreate any self-modifying/source-fix workflow.

Known current-head RED: services/analysis-engine/tests/test_supply_chain_policy.py::test_central_governance_workflows_are_push_only_where_local_signals_remain still groups trivy.yml with push-only CodeQL/Scorecard. Make the narrow source-test correction: retain CodeQL and OSSF Scorecard as push-only local signals; require Trivy to contain ordinary pull_request: and reject pull_request_target:; preserve dependency-review/REQUIRED_FILES assertions. Also preserve #1119's CHANGELOG requirement on this canonical branch if not already present, without duplicating entries.

Use systematic-debugging/TDD and verification-before-completion. Run the focused supply-chain policy test, scripts/checks/test_verify_trivy_pr_scan.py, scripts/checks/verify_trivy_pr_scan.py, pinned Ruff format/check for touched Python, and canonical quickcheck. Publish non-force, then refetch exact-head hosted CI/SBOM/release/Trivy/security checks. Do not merge, self-approve, weaken security gates, or transfer predecessor evidence.

@devin-ai-integration devin-ai-integration Bot 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.

Note

This report is out of date. Scroll down for Devin Review's latest report on this PR.

Devin Review found 2 new potential issues.

Devin Review

Comment thread scripts/checks/verify_trivy_pr_scan.py Outdated
Comment on lines +11 to +14
pull_request:
branches:
- develop
- main

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Existing workflow contract test now fails

The existing push-only contract rejects pull_request: in Scorecard and Trivy. These additions make the Python gate fail.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Collaborator

Extend the existing exact-head sole-writer task before release: PR #780 is an older overlapping CodeQL lifecycle owner and must not remain a parallel writer once its unique executable contract is preserved here. Fresh semantic comparison found one unique #780 requirement not fully covered by this branch's current test_codeql_action_version_contract.py + test_codeql_upload_sarif_version_contract.py: #780's test_codeql_action_revision_contract.py scans every checked-in workflow for github/codeql-action/(init|autobuild|analyze|upload-sarif) and deliberately captures mutable/malformed refs such as @v4 rather than silently ignoring them; it then requires the single reviewed v4.37.8 SHA + version annotation across all phases.

If your sole-writer lease is still active on exact c1f8ccb93db3891cb1c362536e59da399c78d3bc, preserve that unique scanner semantics on this canonical #1026 branch (prefer strengthening/consolidating the existing tests rather than duplicating nearly identical test files), and preserve any still-current decision rationale from docs/doctoring/codeql-action-atomic-revision.md only if it adds facts not already covered by current docs/CHANGELOG. Do not copy #780 stale base identity or predecessor evidence.

After the existing Trivy policy-test/CHANGELOG repair plus this CodeQL global-ref regression are present and focused/full GREEN on one successor exact head, report the exact successor SHA and files preserved. Do not close #780 yourself; the maintainer will independently verify semantic succession before closing it unmerged.

@devin-ai-integration devin-ai-integration Bot 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.

Devin Review found 1 new potential issue.

Devin Review

name: scorecard-sarif-upload
needs: analysis
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
if: github.event_name == 'pull_request' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Forked pull requests fail Scorecard upload

Fork pull requests run scorecard-sarif-upload without the requested write permission. The SARIF upload fails, leaving external contributions with a failed workflow.

Prompt for agents
The scorecard-sarif-upload job now runs for every pull_request, including pull requests from forks. GitHub downgrades GITHUB_TOKEN permissions for fork-triggered pull_request workflows, so security-events: write is unavailable and github/codeql-action/upload-sarif cannot upload the result. Preserve Scorecard analysis or artifact generation for fork PRs if useful, but gate the SARIF upload path to trusted same-repository pull requests (for example by comparing the head repository to github.repository), or provide another non-failing path for forks. Update the workflow contract test to cover the fork condition.
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@dependabot @github

dependabot Bot commented on behalf of github Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of github/codeql-action/init exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@seonghobae seonghobae closed this Sep 2, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/github_actions/develop/github/codeql-action/init-4.37.8 branch September 2, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant