diff --git a/.github/workflows/codeql-scanning.yml b/.github/workflows/codeql-scanning.yml new file mode 100644 index 00000000..d90fe743 --- /dev/null +++ b/.github/workflows/codeql-scanning.yml @@ -0,0 +1,43 @@ +name: "codeql-scanning" + +on: + push: + branches: + - main + - 'release/*' + pull_request: + branches: + - main + - 'release/*' + schedule: + - cron: '0 9 * * *' + +jobs: + CodeQL-Scanning: + + runs-on: ubuntu-latest + + permissions: + contents: read + security-events: write + pull-requests: read + + steps: + - name: Checkout repository + uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 + with: + submodules: recursive + + - name: Install golang + uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a + with: + go-version: '1.22.0' + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@1a7989f3955e0c69f0e0ccc14aee54a387a0fd31 + with: + languages: go + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a