File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,24 +13,17 @@ name: "CodeQL Advanced"
1313
1414on :
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
3022jobs :
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
You can’t perform that action at this time.
0 commit comments