sigs.k8s.io/external-dns@v0.14.1/.github/workflows/codeql-analysis.yml (about) 1 name: "CodeQL analysis" 2 3 on: 4 push: 5 branches: [ master] 6 pull_request: 7 # The branches below must be a subset of the branches above 8 branches: [ master ] 9 schedule: 10 - cron: '35 13 * * 5' 11 workflow_dispatch: 12 13 jobs: 14 analyze: 15 name: Analyze 16 runs-on: ubuntu-latest 17 permissions: 18 actions: read 19 contents: read 20 security-events: write 21 22 strategy: 23 fail-fast: false 24 matrix: 25 language: [ 'go' ] 26 27 steps: 28 - name: Checkout repository 29 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 30 - name: Install go version 31 uses: actions/setup-go@v5 32 with: 33 go-version: '^1.21' 34 35 # Initializes the CodeQL tools for scanning. 36 - name: Initialize CodeQL 37 uses: github/codeql-action/init@v3 38 with: 39 languages: ${{ matrix.language }} 40 # If you wish to specify custom queries, you can do so here or in a config file. 41 # By default, queries listed here will override any specified in a config file. 42 # Prefix the list here with "+" to use these queries and those in the config file. 43 # queries: ./path/to/local/query, your-org/your-repo/queries@main 44 45 - run: | 46 make build 47 48 - name: Perform CodeQL Analysis 49 uses: github/codeql-action/analyze@v3