Skip to content

ci: add CodeQL workflow to satisfy code_scanning branch rule#35

Merged
asoto-iov merged 1 commit into
rsk/developfrom
rsk/ci/add-codeql-workflow
Jul 23, 2026
Merged

ci: add CodeQL workflow to satisfy code_scanning branch rule#35
asoto-iov merged 1 commit into
rsk/developfrom
rsk/ci/add-codeql-workflow

Conversation

@asoto-iov

Copy link
Copy Markdown
Collaborator

rsk-develop-protection requires CodeQL results on every merge to rsk/develop, but the repo has no CodeQL workflow, so no analysis has ever run and every PR is stuck on "Waiting for Code Scanning results." Scoped to Go (the repo's single root module) for now; Rust/JS coverage can follow separately.

rsk-develop-protection requires CodeQL results on every merge to
rsk/develop, but the repo has no CodeQL workflow, so no analysis has
ever run and every PR is stuck on "Waiting for Code Scanning results."
Scoped to Go (the repo's single root module) for now; Rust/JS coverage
can follow separately.
Copilot AI review requested due to automatic review settings July 23, 2026 15:24

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.

Pull request overview

Adds a minimal GitHub Actions CodeQL workflow for the RSK fork to unblock the code_scanning branch protection rule on merges to rsk/develop, initially scoped to Go (root go.mod).

Changes:

  • Introduces a new rsk-codeql workflow that runs CodeQL on PRs targeting rsk/** and on pushes to rsk/develop.
  • Pins third-party actions by commit SHA and grants the minimal permissions needed to upload CodeQL results.
Comments suppressed due to low confidence (2)

.github/workflows/rsk-codeql.yml:33

  • Same as above: this SHA pin is good, but the inline "v4.37.3" annotation is likely to become misleading over time (and may already be incorrect). Prefer omitting the version comment when pinning by SHA unless you can guarantee it matches the referenced commit/tag.
      - uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3

.github/workflows/rsk-codeql.yml:38

  • Same as above for the analyze step: consider removing the inline "v4.37.3" annotation when pinning by SHA to avoid an incorrect version reference in the workflow.
      - uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/rsk-codeql.yml
@asoto-iov
asoto-iov merged commit 9eb10ac into rsk/develop Jul 23, 2026
4 checks passed
@asoto-iov
asoto-iov deleted the rsk/ci/add-codeql-workflow branch July 23, 2026 17:07
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.

2 participants