Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ name: CodeQL

on:
push:
branches: [main]
branches: [main, v2-candidate]
pull_request:
branches: [main]
branches: [main, v2-candidate]
schedule:
# Monday, off the hour: scheduled runs queue behind everyone else's at the
# boundary, and GitHub drops them under load.
Expand Down
9 changes: 9 additions & 0 deletions tests/test_codeql_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,12 @@ def test_java_build_is_traced_before_analysis_and_checked_after() -> None:
== "matrix.language == 'java-kotlin'"
)
assert job['permissions']['security-events'] == 'write'


def test_release_branch_is_scanned() -> None:
workflow = yaml.load(
(ROOT / '.github/workflows/codeql.yml').read_text(),
Loader=yaml.BaseLoader,
)
for event in ('push', 'pull_request'):
assert workflow['on'][event]['branches'] == ['main', 'v2-candidate']
Loading