github.com/aiven/aiven-go-client@v1.36.0/.github/workflows/codeql.yml (about)

     1  name: CodeQL
     2  
     3  on:
     4    pull_request:
     5      branches:
     6        - main
     7      types:
     8        - opened
     9        - synchronize
    10        - reopened
    11        - labeled
    12        - unlabeled
    13    push:
    14      branches:
    15        - main
    16  
    17  permissions:
    18    actions: read
    19    contents: read
    20    security-events: write
    21  
    22  jobs:
    23    codeql:
    24      runs-on: ubuntu-latest
    25      if: >
    26        (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip workflows')) ||
    27        github.event_name == 'push'
    28      steps:
    29        - uses: actions/checkout@v3
    30        - uses: github/codeql-action/init@v2
    31          with:
    32            languages: go
    33        - uses: github/codeql-action/autobuild@v2
    34        - uses: github/codeql-action/analyze@v2