Skip to content

✨ Add CodeQL actions#6286

Merged
czunker merged 2 commits intomainfrom
czunker/codeql_actions
Dec 12, 2025
Merged

✨ Add CodeQL actions#6286
czunker merged 2 commits intomainfrom
czunker/codeql_actions

Conversation

@czunker
Copy link
Copy Markdown
Contributor

@czunker czunker commented Dec 10, 2025

No description provided.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a simplified version of what is generated here:

https://github.com/mondoohq/cnquery/new/main?filename=.github%2Fworkflows%2Fcodeql.yml&workflow_template=code-scanning%2Fcodeql

I also replaced the tags with hashes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We already have this action here: https://github.com/mondoohq/ranger-rpc/blob/main/.github/workflows/dependency-review.yml

It might also be useful in this repo.

@czunker czunker marked this pull request as ready for review December 10, 2025 15:58

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
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.

don't we need to explicitly call github/codeql-action/analyze as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice catch. I over-simplified the workflow.

I pushed an update.

Signed-off-by: Christian Zunker <christian@mondoo.com>
@czunker czunker force-pushed the czunker/codeql_actions branch from a77961e to 7e924f9 Compare December 10, 2025 16:35
@github-advanced-security
Copy link
Copy Markdown
Contributor

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Signed-off-by: Christian Zunker <christian@mondoo.com>
@czunker czunker merged commit 317a301 into main Dec 12, 2025
9 checks passed
@czunker czunker deleted the czunker/codeql_actions branch December 12, 2025 10:58
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants