github.com/vmware/govmomi@v0.43.0/.github/workflows/codeql-analysis.yml (about)

     1  name: CodeQL
     2  "on":
     3    push:
     4      branches:
     5        - main
     6    pull_request:
     7      branches:
     8        - main
     9    schedule:
    10      - cron: 30 23 * * 06
    11  jobs:
    12    analyze:
    13      name: Analyze
    14      runs-on: ubuntu-latest
    15      permissions:
    16        actions: read
    17        contents: read
    18        security-events: write
    19      strategy:
    20        fail-fast: false
    21        matrix:
    22          language:
    23            - go
    24      steps:
    25        - name: Checkout repository
    26          uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
    27        # Workaround for Go 1.21 compatibility.
    28        # TODO: Remove when GitHub Action runners Support Go 1.21+.
    29        - name: Setup Go
    30          uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
    31          with:
    32            go-version-file: "go.mod"
    33            cache: false
    34        - name: Initialize CodeQL
    35          uses: github/codeql-action/init@c4fb451437765abf5018c6fbf22cce1a7da1e5cc # codeql-bundle-v2.17.1
    36          with:
    37            languages: "${{ matrix.language }}"
    38        - name: Autobuild
    39          uses: github/codeql-action/autobuild@c4fb451437765abf5018c6fbf22cce1a7da1e5cc # codeql-bundle-v2.17.1
    40        - name: Perform CodeQL Analysis
    41          uses: github/codeql-action/analyze@c4fb451437765abf5018c6fbf22cce1a7da1e5cc # codeql-bundle-v2.17.1