diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..877b365 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,29 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + schedule: + - cron: '0 5 1 * *' # monthly, 1st at 05:00 UTC + workflow_dispatch: + +concurrency: + group: codeql-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + analyze: + # Without the event_name check the job is skipped on push/schedule: + # github.event.pull_request.draft is null there. + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false + permissions: + actions: read + contents: read + security-events: write + uses: OriginAS/origin-actions/.github/workflows/codeql.yml@main + secrets: inherit