Skip to content

CodeQL

CodeQL #545

name: CodeQL
on:
push:
branches:
- master
schedule:
- cron: '10 18 * * 2'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
if: ${{ github.repository == 'CrunchyData/postgres-operator' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with: { go-version: 1.x }
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with: { languages: go }
- name: Autobuild
# This action calls `make` which runs our "help" target.
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2