|
41 | 41 |
|
42 | 42 | steps:
|
43 | 43 | - name: Free Disk Space (Ubuntu)
|
44 |
| - uses: jlumbroso/free-disk-space@main |
| 44 | + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # main |
45 | 45 | with:
|
46 | 46 | # this might remove tools that are actually needed,
|
47 | 47 | # if set to "true" but frees about 6 GB
|
|
69 | 69 |
|
70 | 70 | # Initializes the CodeQL tools for scanning.
|
71 | 71 | - name: Initialize CodeQL
|
72 |
| - uses: github/codeql-action/init@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2.23.0 |
| 72 | + uses: github/codeql-action/init@0b21cf2492b6b02c465a3e5d7c473717ad7721ba # v3.23.1 |
73 | 73 | with:
|
74 | 74 | languages: ${{ matrix.language }}
|
75 | 75 | # If you wish to specify custom queries, you can do so here or in a config file.
|
|
94 | 94 | colcon build --event-handlers console_direct+ --executor sequential --packages-up-to ad_rss ad_rss_map_integration --cmake-args -DBUILD_HARDENING=ON -DBUILD_TESTING=ON -DBUILD_PYTHON_BINDING=ON
|
95 | 95 |
|
96 | 96 | - name: Perform CodeQL Analysis
|
97 |
| - uses: github/codeql-action/analyze@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2.23.0 |
| 97 | + uses: github/codeql-action/analyze@0b21cf2492b6b02c465a3e5d7c473717ad7721ba # v3.23.1 |
98 | 98 | with:
|
| 99 | + upload: false # disable the upload here - we will upload in a different action |
99 | 100 | category: "/language:${{matrix.language}}"
|
| 101 | + output: sarif-results |
| 102 | + |
| 103 | + - name: filter-sarif |
| 104 | + uses: advanced-security/filter-sarif@f3b8118a9349d88f7b1c0c488476411145b6270d # v1.0.1 |
| 105 | + with: |
| 106 | + # filter out all dependencies of map |
| 107 | + patterns: | |
| 108 | + -dependencies/map/dependencies/**/* |
| 109 | + input: sarif-results/${{ matrix.language }}.sarif |
| 110 | + output: sarif-results/${{ matrix.language }}.sarif |
| 111 | + |
| 112 | + - name: Upload SARIF |
| 113 | + uses: github/codeql-action/upload-sarif@0b21cf2492b6b02c465a3e5d7c473717ad7721ba # v3.23.1 |
| 114 | + with: |
| 115 | + sarif_file: sarif-results/${{ matrix.language }}.sarif |
| 116 | + |
0 commit comments