Skip to content

Add kubectl-plugin build to code scanning. #2959

Add kubectl-plugin build to code scanning.

Add kubectl-plugin build to code scanning. #2959

Workflow file for this run

---
name: "CodeQL"
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '*.md'
- 'LICENSE.txt'
- 'PROJECT'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore:
- 'docs/**'
- '*.md'
- 'LICENSE.txt'
- 'PROJECT'
schedule:
- cron: '0 0 * * 0'
jobs:
analyze:
name: Analyze
if: ${{ github.actor != 'dependabot[bot]' || github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: go
build-mode: manual
dependency-caching: true
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v4
- run: |
go build -o manager ./cmd
go build -o kubectl-plugin ./kubectl-rabbitmq
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:go'