Skip to content

ci: add CodeQL workflow and badge#39

Closed
BryanFRD wants to merge 2 commits into
mainfrom
ci/codeql
Closed

ci: add CodeQL workflow and badge#39
BryanFRD wants to merge 2 commits into
mainfrom
ci/codeql

Conversation

@BryanFRD

Copy link
Copy Markdown
Contributor

Add explicit CodeQL analysis workflow running on push to main, PRs, and weekly schedule. Add CodeQL badge to README.

Copilot AI review requested due to automatic review settings March 30, 2026 17:55
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@codecov

codecov Bot commented Mar 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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 GitHub CodeQL code scanning to the repository and exposes its status in the README, improving automated security analysis coverage for the TypeScript/JavaScript codebase.

Changes:

  • Add a dedicated CodeQL workflow running on push/PR to main plus a weekly cron schedule.
  • Add a CodeQL Actions badge to README.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
README.md Adds a CodeQL workflow status badge alongside existing CI/Coverage badges.
.github/workflows/codeql.yml Introduces a CodeQL analysis workflow for JavaScript/TypeScript.

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

analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:

Copilot AI Mar 30, 2026

Copy link

Choose a reason for hiding this comment

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

permissions is set at the job level but only grants security-events: write. When a job defines permissions, all unspecified scopes default to none, so actions/checkout will not be able to read repository contents and the workflow will fail. Add at least contents: read (and typically also actions: read) alongside security-events: write.

Suggested change
permissions:
permissions:
contents: read
actions: read

Copilot uses AI. Check for mistakes.
@BryanFRD BryanFRD closed this Mar 30, 2026
@BryanFRD BryanFRD deleted the ci/codeql branch March 30, 2026 17:58
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