Skip to content

Commit

Permalink
Update ci.yml with codeql filters
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthysell authored Dec 18, 2024
1 parent bccff0a commit ca61f8c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .ado/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,23 @@ name: RNW Samples Production CI $(Date:yyyyMMdd).$(Rev:r)
trigger: none
pr: none

parameters:
- name: forceCodeQL
displayName: Force CodeQL to rebuild databases
type: boolean
default: false

variables:
- name: Codeql.Enabled
value: true
- name: Codeql.Cadence
value: 120 # In hours, default to only run every 5 days
- name: Codeql.ExcludePathPatterns
value: samples/,samples-old/
- ${{ if eq(parameters.forceCodeQL, true) }}:
- name: Codeql.Cadence
value: 0
- ${{ if eq(parameters.forceCodeQL, false) }}:
- name: Codeql.Cadence
value: 120 # In hours, default to only run every 5 days

pool:
vmImage: 'ubuntu-latest'
Expand Down

0 comments on commit ca61f8c

Please sign in to comment.