diff --git a/.github/workflows/self-codeql.yml b/.github/workflows/self-codeql.yml new file mode 100644 index 0000000..ecf3249 --- /dev/null +++ b/.github/workflows/self-codeql.yml @@ -0,0 +1,45 @@ +name: Self — CodeQL + +on: + push: + branches: + - develop + - main + pull_request: + branches: + - develop + - main + schedule: + # Run every Monday at 06:00 UTC + - cron: '0 6 * * 1' + workflow_dispatch: + +permissions: + contents: read + security-events: write + actions: read + +jobs: + analyze: + name: CodeQL Analysis + runs-on: blacksmith-4vcpu-ubuntu-2404 + + strategy: + fail-fast: false + matrix: + language: + - actions + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: '/language:${{ matrix.language }}'