github.com/vmware/govmomi@v0.51.0/.github/workflows/codeql-analysis.yml (about) 1 name: CodeQL Analysis 2 3 permissions: 4 contents: read 5 security-events: write 6 7 on: 8 push: 9 branches: main 10 pull_request: 11 branches: main 12 schedule: 13 - cron: 30 23 * * 06 14 workflow_dispatch: 15 16 jobs: 17 analyze: 18 name: Analyze 19 runs-on: ubuntu-latest 20 strategy: 21 fail-fast: false 22 matrix: 23 language: 24 - go 25 steps: 26 - name: Checkout Repository 27 uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 28 - name: Setup Go 29 uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 30 with: 31 go-version-file: go.mod 32 cache: false 33 - name: Initialize CodeQL 34 uses: github/codeql-action/init@c4fb451437765abf5018c6fbf22cce1a7da1e5cc # codeql-bundle-v2.17.1 35 with: 36 languages: "${{ matrix.language }}" 37 tools: latest 38 - name: Build 39 # Used instead of codeql-action/autobuild. 40 run: | 41 echo "Building govmomi..." && go build ./ > /dev/null 2>&1 || { echo "error building govmomi"; exit 1; } 42 echo "Building govc..." && (cd govc && make clean > /dev/null 2>&1 && make all > /dev/null 2>&1) || { echo "error building govc"; exit 1; } 43 echo "Building vcsim..." && (cd vcsim && make clean > /dev/null 2>&1 && make all > /dev/null 2>&1) || { echo "error building vcsim"; exit 1; } 44 - name: Perform CodeQL Analysis 45 uses: github/codeql-action/analyze@c4fb451437765abf5018c6fbf22cce1a7da1e5cc # codeql-bundle-v2.17.1