diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..e74c4ce --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,29 @@ +name: "CodeQL" + +permissions: + actions: read + contents: read + security-events: write + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + schedule: + - cron: "0 0 * * 1" + workflow_dispatch: + +jobs: + codeql: + uses: zopencommunity/meta/.github/workflows/codeql.yml@main + secrets: inherit + permissions: + actions: read + contents: read + security-events: write + with: + languages: "c-cpp" + build-mode: "none" + repo: ${{ github.repository }} + branch: ${{ github.head_ref || github.ref_name }}