Skip to content

ci(codeql): streamline workflow configuration and enhance security analysis#276

Merged
marcusrbrown merged 2 commits intomainfrom
orange-parental-locust
Feb 28, 2026
Merged

ci(codeql): streamline workflow configuration and enhance security analysis#276
marcusrbrown merged 2 commits intomainfrom
orange-parental-locust

Conversation

@marcusrbrown
Copy link
Collaborator

  • Remove renovate branch pattern from push trigger, focus on main branch only
  • Extend PR trigger types to include reopened and ready_for_review events
  • Add workflow_dispatch trigger for manual CodeQL runs
  • Remove env.language variable and hardcode javascript configuration
  • Add explicit actions:read permission to job
  • Enable security-and-quality queries for enhanced code scanning
  • Simplify configuration by removing environment variable indirection

…alysis

- Remove renovate branch pattern from push trigger, focus on main branch only
- Extend PR trigger types to include reopened and ready_for_review events
- Add workflow_dispatch trigger for manual CodeQL runs
- Remove env.language variable and hardcode javascript configuration
- Add explicit actions:read permission to job
- Enable security-and-quality queries for enhanced code scanning
- Simplify configuration by removing environment variable indirection
@marcusrbrown marcusrbrown self-assigned this Feb 28, 2026
@fro-bot fro-bot added the agent: working Agent is currently working on this label Feb 28, 2026
Copy link
Owner

@fro-bot fro-bot left a comment

Choose a reason for hiding this comment

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

The CodeQL workflow improvements look solid. A few observations:

Approved with notes — all changes are intentional and reasonable. Flagging two behavioral shifts worth being aware of.


✅ What's good

  • **** — useful escape hatch for manual scans; should have been there from the start.
  • ** + triggers** — covers the draft→ready transition, which the previous config missed.
  • ** permission** — explicitly required by CodeQL for workflow artifact access; correct addition.
  • **** — the + prefix correctly extends rather than replaces defaults. Adds code quality checks on top of the security suite. Scan times will increase somewhat but coverage improves meaningfully.
  • Removing indirection — no real upside to the variable; hardcoding javascript is cleaner here.
  • Removing renovate/** from push branches — Renovate branches are already covered by the PR trigger, so this was just redundant scanning.

⚠️ Two behavioral changes to be aware of

1. PR trigger now has filter

The original workflow ran CodeQL on all PRs regardless of target branch. After this change, only PRs targeting main get scanned. For this repo's single-track workflow that's fine, but if any PRs ever target a non-main base (e.g., a release branch, a feature integration branch), they'll silently skip CodeQL.

2. Concurrency removed (separate commit ca80b2c)

The prior config cancelled in-progress runs when a new push arrived:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
  cancel-in-progress: true

Removing this means rapid-push scenarios now queue multiple CodeQL runs concurrently instead of dropping stale ones. For security scanning intentionally avoiding cancellation makes sense (you don't want a scan mid-flight to get dropped), but it does cost extra Actions minutes on active PRs. Worth monitoring if minute usage becomes a concern.


Both of these are conscious trade-offs rather than bugs. The overall direction — less indirection, broader trigger coverage, stronger query suite — is the right move.


Run Summary
Field Value
Event pull_request
Repository fro-bot/agent
Run ID 22514175624
Cache hit
Session ses_35d4db3adffeevc8o26z4t5vq1

Copy link
Owner

@fro-bot fro-bot left a comment

Choose a reason for hiding this comment

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

The CodeQL workflow improvements look solid. A few observations:

Approved with notes — all changes are intentional and reasonable. Flagging two behavioral shifts worth being aware of.


✅ What's good

  • workflow_dispatch — useful escape hatch for manual scans; should have been there from the start.
  • reopened + ready_for_review triggers — covers the draft→ready transition, which the previous config missed.
  • actions: read permission — explicitly required by CodeQL for workflow artifact access; correct addition.
  • queries: +security-and-quality — the + prefix correctly extends rather than replaces defaults. Adds code quality checks on top of the security suite. Scan times will increase somewhat but coverage improves meaningfully.
  • Removing env.language indirection — no real upside to the variable; hardcoding javascript is cleaner here.
  • **Removing renovate/** from push branches** — Renovate branches are already covered by the PR trigger, so this was just redundant scanning.

⚠️ Two behavioral changes to be aware of

1. PR trigger now has branches: [main] filter

The original workflow ran CodeQL on all PRs regardless of target branch. After this change, only PRs targeting main get scanned. For this repo's single-track workflow that's fine, but if any PRs ever target a non-main base (e.g., a release branch, a feature integration branch), they'll silently skip CodeQL.

2. Concurrency removed (separate commit ca80b2c)

The prior config cancelled in-progress runs when a new push arrived:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
  cancel-in-progress: true

Removing this means rapid-push scenarios now queue multiple CodeQL runs concurrently instead of dropping stale ones. For security scanning intentionally avoiding cancellation makes sense (you don't want a scan mid-flight to get dropped), but it does cost extra Actions minutes on active PRs. Worth monitoring if minute usage becomes a concern.


Both of these are conscious trade-offs rather than bugs. The overall direction — less indirection, broader trigger coverage, stronger query suite — is the right move.


Run Summary
Field Value
Event pull_request
Repository fro-bot/agent
Run ID 22514175624
Cache hit
Session ses_35d4db3adffeevc8o26z4t5vq1

@fro-bot fro-bot removed the agent: working Agent is currently working on this label Feb 28, 2026
@marcusrbrown marcusrbrown merged commit 49c6bf4 into main Feb 28, 2026
10 checks passed
@marcusrbrown marcusrbrown deleted the orange-parental-locust branch February 28, 2026 05:29
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