Skip to content

Commit e760937

Browse files
add full_scan for tmp-branch
1 parent 33ab4bc commit e760937

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,17 @@ name: "CodeQL Advanced"
1313

1414
on:
1515
push:
16-
branches: [ "main" ]
16+
branches: [ "main", "Add-security-analysis-workflow-configuration" ]
1717
pull_request:
1818
branches: [ "main" ]
1919
schedule:
2020
- cron: '42 22 * * 5'
21-
workflow_dispatch:
22-
inputs:
23-
full_scan:
24-
description: "Run full repository scan (ignores incremental baseline)"
25-
required: false
26-
default: "false"
27-
type: choice
28-
options: ["false", "true"]
2921

3022
jobs:
3123
analyze:
3224
name: Analyze (${{ matrix.language }})
33-
if: github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && inputs.full_scan != 'true')
25+
# Incremental scan on main and PRs; full scan handled by analyze-full job for specific branch
26+
if: github.ref != 'refs/heads/Add-security-analysis-workflow-configuration'
3427
# Runner size impacts CodeQL analysis time. To learn more, please see:
3528
# - https://gh.io/recommended-hardware-resources-for-running-codeql
3629
# - https://gh.io/supported-runners-and-hardware-resources
@@ -113,7 +106,8 @@ jobs:
113106

114107
analyze-full:
115108
name: Full Scan (${{ matrix.language }})
116-
if: github.event_name == 'workflow_dispatch' && inputs.full_scan == 'true'
109+
# Full repository scan when working on the dedicated security branch
110+
if: github.ref == 'refs/heads/Add-security-analysis-workflow-configuration'
117111
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
118112
permissions:
119113
security-events: write

0 commit comments

Comments
 (0)