Skip to content

Commit 09a4362

Browse files
Adds job for scanning dependencies (#25)
* Adds job for scanning dependencies * Adds job for CodeQL Scan
1 parent caa85c8 commit 09a4362

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/mr_ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,34 @@ jobs:
4040
run: |
4141
pytest --no-cov-on-fail --cov argocd --cov-report html --cov-report term --cov-report xml tests/unit
4242
./codecov -t ${CODECOV_TOKEN} -F unit
43+
scan:
44+
runs-on: ubuntu-latest
45+
permissions:
46+
contents: read
47+
steps:
48+
- name: 'Checkout Repository'
49+
uses: actions/checkout@v3
50+
- name: 'Dependency Review'
51+
uses: actions/dependency-review-action@v2
52+
analyze:
53+
runs-on: ubuntu-latest
54+
permissions:
55+
actions: read
56+
contents: read
57+
security-events: write
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
language: [ 'python' ]
62+
steps:
63+
- name: Checkout repository
64+
uses: actions/checkout@v3
65+
- name: Initialize CodeQL
66+
uses: github/codeql-action/init@v2
67+
with:
68+
languages: ${{ matrix.language }}
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v2
71+
with:
72+
category: "/language:${{matrix.language}}"
73+

0 commit comments

Comments
 (0)