diff --git a/.github/workflows/code-ql.yml b/.github/workflows/code-ql.yml index 045a88d..2bca5b2 100644 --- a/.github/workflows/code-ql.yml +++ b/.github/workflows/code-ql.yml @@ -1,7 +1,10 @@ name: CodeQL on: + push: + branches: [master] pull_request: + branches: [master] schedule: - cron: '0 5 * * 1' workflow_dispatch: @@ -9,12 +12,16 @@ on: permissions: {} jobs: + # One job for every language, so the required check context is exactly `code-ql` (a matrix would suffix it + # with the language). code-ql: + name: code-ql runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write + steps: - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -40,7 +47,7 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0 with: - languages: kotlin + languages: kotlin,actions - name: Autobuild uses: github/codeql-action/autobuild@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0