Skip to content

Extend CodeQL to the actions language, settle on security-extended, and document the alert dismissal policy (#341) - #366

Merged
IanoNjuguna merged 2 commits into
IntersectMBO:mainfrom
Kshot3000:feat/codeql-actions-suite
Nov 11, 2026
Merged

IanoNjuguna merged 2 commits into
IntersectMBO:mainfrom
Kshot3000:feat/codeql-actions-suite

Conversation

@Kshot3000

Copy link
Copy Markdown
Contributor

What this does

Follow-up to #298 / #335, closing out #341 in one change:

1. The actions language is analysed. One matrix entry (build-mode: none) alongside javascript-typescript. The Actions extractor reads the workflow YAML directly, and the run on my fork analyses this repo's workflows cleanly with no extra configuration: 17 rules (default suite), 0 results. These are the highest-privilege files in the repo — deploy.yml holds pages: write and id-token: write — and until now nothing scanned them.

2. The query suite is settled: security-extended. Comparison run on a throwaway fork branch, both suites against this tree:

Suite javascript-typescript actions Results
default 87 rules 17 rules 0
security-extended 103 rules 23 rules 0

The wider suite surfaces nothing extra on the current code, so the noise risk #341 flags does not materialise — the extra 22 rules are free coverage, and the suite is now a decision instead of a default. (The numbers are also recorded on #341 itself.)

3. TRIAGE.md states the dismissal policy. Only a maintainer may dismiss a code scanning alert, and only with one of the three GitHub reason codes — false positive, won't fix, used in tests — each with what the dismissal comment must show; dismissing for convenience or without an explanation is explicitly not acceptable, and dismissals are revisited in the monthly review. The Security scanning section also now records that workflows are covered.

Verification

  • Both fork probe runs are green (default suite + actions, and security-extended + actions), and the per-language rule/result counts above come from the code-scanning analyses those runs uploaded.
  • The workflow YAML parses; the only changes are the matrix entry, the queries: line, and comments.
  • Files changed: exactly .github/workflows/codeql.yml and TRIAGE.md.

Built and maintained by me, an independent Cardano community builder — not affiliated with the Cardano Foundation, IOG or Intersect.
@Kshot9000 (https://x.com/kshot9000) · ADA: addr1q8hnl6vl5a6k3rw3n5g3jtte696zcl76kfatzv7gpswa9r0dj7fma6klq55y4ffm7tf0em09udnyhuk4ah92pl5x9jpqjae44v
cc @cardano-foundation @IntersectMBO

@IanoNjuguna

Copy link
Copy Markdown
Contributor

hey, gonna review this before merging

@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.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Is this pull request abandoned? It had no activity for 21 days. It has been marked stale and will be closed in 7 days if no further activity occurs. Add a comment or push a commit to keep it open. See TRIAGE.md for our triage cadence.

@github-actions github-actions Bot added the stale Applied automatically after prolonged inactivity label Nov 9, 2026
@Ranchhand87

Copy link
Copy Markdown
Contributor

pinng @IanoNjuguna @danbaruka

@Kshot3000

Kshot3000 commented Nov 10, 2026 via email

Copy link
Copy Markdown
Contributor Author

…t dismissal policy (IntersectMBO#341)

The workflow merged in IntersectMBO#335 covers the website sources only. The
workflow files under .github/workflows/ are the highest-privilege code
in this repo (deploy.yml holds pages: write and id-token: write) and
nothing analysed them.

- Add an actions matrix entry (build-mode: none) alongside
  javascript-typescript, so workflow YAML gets the same SAST coverage:
  the actions query pack covers code injection in workflows, unpinned
  or third-party actions and cleartext credentials, among others.
- TRIAGE.md: the Security scanning section now records that workflows
  are covered, and a new subsection states the code scanning dismissal
  policy — only a maintainer may dismiss, and only with one of the
  three GitHub reason codes (false positive / won't fix / used in
  tests), each with its bar for what the dismissal comment must show.

The query-suite comparison (default vs security-extended) numbers are
recorded on IntersectMBO#341; this change keeps the suite that comparison supports.
…ctMBO#341)

Comparison run on a throwaway fork branch, both suites against this
tree (numbers also recorded on IntersectMBO#341):

- default suite:            javascript-typescript 87 rules, actions 17 rules — 0 results
- security-extended suite:  javascript-typescript 103 rules, actions 23 rules — 0 results

The wider suite surfaces nothing extra on the current code, so the
noise risk does not materialise and the extra 22 rules are free
coverage. Making it the default here rather than leaving the suite
un-chosen.
@Kshot3000
Kshot3000 force-pushed the feat/codeql-actions-suite branch from c1b9149 to ea77c7c Compare November 10, 2026 13:33
@Kshot3000

Copy link
Copy Markdown
Contributor Author

Refreshing this PR: I've rebased the branch onto current main (it had drifted 13 commits behind since October) — clean rebase, no conflicts, and the change itself is untouched:

  • .github/workflows/codeql.yml: adds the actions language to the analysis matrix and settles the query suite on security-extended (the comparison behind that choice is recorded on Extend CodeQL to the actions language and settle the query suite #341 — wider suite, still 0 results on this tree).
  • TRIAGE.md: updates the CodeQL coverage description and documents the code-scanning alert dismissal policy (who may dismiss, the three reason codes, and what isn't an acceptable dismissal).

One wrinkle: the new head's workflow run is sitting at "approval required" (fork PR), so it needs a maintainer to approve the run before checks report on this head. On the previous head all three checks were green (CodeQL, Analyze (actions), Analyze (javascript-typescript)).

@IanoNjuguna @danbaruka — no rush, just keeping this current and merge-ready for whenever it reaches the top of your queue. Happy to split the TRIAGE.md policy section into its own PR if you'd rather land the workflow change alone.

— @Kshot9000 · ADA tips: addr1q8hnl6vl5a6k3rw3n5g3jtte696zcl76kfatzv7gpswa9r0dj7fma6klq55y4ffm7tf0em09udnyhuk4ah92pl5x9jpqjae44v

@danbaruka
danbaruka marked this pull request as draft November 11, 2026 02:18

@danbaruka danbaruka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The change matches #341. actions with build-mode: none is the right setup, and security-extended keeps the default queries and adds the wider set without the maintainability rules. The dismissal policy in TRIAGE.md matches the three GitHub reason codes.

LGTM

@danbaruka
danbaruka marked this pull request as ready for review November 11, 2026 02:19
@github-actions github-actions Bot removed the stale Applied automatically after prolonged inactivity label Nov 11, 2026
@IanoNjuguna
IanoNjuguna merged commit 1113aea into IntersectMBO:main Nov 11, 2026
2 checks passed
@IanoNjuguna

Copy link
Copy Markdown
Contributor

Merged

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.

5 participants