diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..1147390 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: CodeQL Analysis + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '1 1 * * 3' + +permissions: + contents: read + +jobs: + analyze: + name: Static Code Analysis with CodeQL + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: + - actions + steps: + - name: Checkout repository + uses: actions/checkout@v4.2.2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3.29.2 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3.29.2 + with: + category: "/language:${{matrix.language}}"