Add dicom to csv pipeline component #462
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
schedule: | |
- cron: "53 5 * * 5" | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ csharp ] | |
steps: | |
- name: Checkout RdmpDicom source | |
uses: actions/checkout@v4 | |
- name: Checkout RDMP source | |
uses: actions/checkout@v4 | |
with: | |
repository: HicServices/RDMP | |
ref: develop | |
path: RDMP | |
- name: Get version | |
id: version | |
shell: cmd | |
run: | | |
perl getversions.pl | |
perl getversions.pl >> %GITHUB_OUTPUT% | |
- name: Fetch RDMP latest tag | |
run: | | |
cd RDMP | |
git fetch --unshallow --tags | |
git checkout v${{steps.version.outputs.rdmpversion}} | |
cd .. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
queries: +security-and-quality | |
- name: Autobuild | |
run: dotnet build -c Debug | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:${{ matrix.language }}" | |
upload: False | |
output: sarif-results | |
- name: filter-sarif | |
uses: advanced-security/filter-sarif@v1 | |
with: | |
patterns: | | |
+**/* | |
-**/RDMP/** | |
input: sarif-results/csharp.sarif | |
output: sarif-results/csharp.sarif | |
- name: Upload SARIF | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: sarif-results/csharp.sarif | |