Merge pull request #341 from robinje/dependabot/pip/requirements/attr… #320
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 Analysis for Python and Go" | |
on: | |
push: | |
branches: [develop, qa, prod] | |
pull_request: | |
branches: "**" | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
packages: read | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL for Go | |
if: contains(github.event.repository.language, 'Go') | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: go | |
build-mode: autobuild | |
- name: Initialize CodeQL for Python | |
if: contains(github.event.repository.language, 'Python') | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: python | |
build-mode: none | |
# You can add any custom build steps here if required for Go, with manual build mode. | |
- name: Perform CodeQL Analysis for Go | |
if: contains(github.event.repository.language, 'Go') | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:go" | |
- name: Perform CodeQL Analysis for Python | |
if: contains(github.event.repository.language, 'Python') | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:python" |