Skip to content

codeql

codeql #1046

name: codeql
# Any change in triggers needs to be reflected in the concurrency group.
on:
push:
branches:
- 'dev-refactor'
- 'master'
- 'v*'
pull_request:
branches:
- 'master'
schedule:
- cron: '45 7 * * 3'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after || 'scheduled' }}
cancel-in-progress: true
jobs:
analyze:
if: github.repository == 'cilium/hubble-ui'
name: Analyze
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['go', 'javascript-typescript']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: ./backend/go.mod
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'