File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"]
2129
2230jobs :
2331 analyze :
2432 name : Analyze (${{ matrix.language }})
33+ if : github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && inputs.full_scan != 'true')
2534 # Runner size impacts CodeQL analysis time. To learn more, please see:
2635 # - https://gh.io/recommended-hardware-resources-for-running-codeql
2736 # - https://gh.io/supported-runners-and-hardware-resources
@@ -101,3 +110,39 @@ jobs:
101110 uses : github/codeql-action/analyze@v4
102111 with :
103112 category : " /language:${{matrix.language}}"
113+
114+ analyze-full :
115+ name : Full Scan (${{ matrix.language }})
116+ if : github.event_name == 'workflow_dispatch' && inputs.full_scan == 'true'
117+ runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
118+ permissions :
119+ security-events : write
120+ packages : read
121+ actions : read
122+ contents : read
123+ strategy :
124+ fail-fast : false
125+ matrix :
126+ include :
127+ - language : actions
128+ build-mode : none
129+ - language : javascript-typescript
130+ build-mode : none
131+ - language : python
132+ build-mode : none
133+ steps :
134+ - name : Checkout repository (full history)
135+ uses : actions/checkout@v4
136+ with :
137+ fetch-depth : 0
138+
139+ - name : Initialize CodeQL (full scan)
140+ uses : github/codeql-action/init@v4
141+ with :
142+ languages : ${{ matrix.language }}
143+ build-mode : ${{ matrix.build-mode }}
144+
145+ - name : Perform CodeQL Analysis (full)
146+ uses : github/codeql-action/analyze@v4
147+ with :
148+ category : " /language:${{matrix.language}}/full"
You can’t perform that action at this time.
0 commit comments