11name : ' CodeQL'
22
33on :
4- schedule :
5- - cron : ' 0 1 * * *'
64 workflow_dispatch :
75
86jobs :
@@ -17,20 +15,17 @@ jobs:
1715 strategy :
1816 fail-fast : false
1917 matrix :
20- branch : [ '22_1', '22_2', '23_1' ]
2118 language : [ 'csharp', 'javascript' ]
2219 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
2320 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
2421
2522 steps :
2623 - name : Checkout repository
2724 uses : actions/checkout@v4
28- with :
29- ref : ${{ matrix.branch }}
3025
3126 - name : Get head SHA
3227 id : get-head-sha
33- run : echo "SHA=$(git rev-parse origin/${{ matrix.branch }})" >> "$GITHUB_OUTPUT"
28+ run : echo "SHA=$(git rev-parse origin/${{ github.ref_name }})" >> "$GITHUB_OUTPUT"
3429
3530 # Initializes the CodeQL tools for scanning.
3631 - name : Initialize CodeQL
4641 uses : github/codeql-action/analyze@v2
4742 with :
4843 category : " /language:${{matrix.language}}"
49- ref : refs/heads/${{ matrix.branch }}
44+ ref : refs/heads/${{ github.ref_name }}
5045 sha : ${{ steps.get-head-sha.outputs.SHA }}
5146
5247 fetch :
8075 id : notify-cache
8176 with :
8277 path : notify.json
83- key : ${{ runner.os }}-${{ matrix.branch }}-${{ matrix.language }}-${{ steps.get-date.outputs.date }}
84- restore-keys : ${{ runner.os }}-${{ matrix.branch }}-${{ matrix.language }}
78+ key : ${{ runner.os }}-${{ github.ref_name }}-${{ matrix.language }}-${{ steps.get-date.outputs.date }}
79+ restore-keys : ${{ runner.os }}-${{ github.ref_name }}-${{ matrix.language }}
8580
8681 - name : Teams Notification
8782 uses : DevExpress/github-actions/send-teams-notification@main
0 commit comments