mirror of
https://github.com/k3s-io/k3s.git
synced 2026-04-07 18:35:03 -04:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: "CodeQL Static Analysis"
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 4 * * 1'
|
|
workflow_dispatch: {}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: 'ubuntu-latest'
|
|
permissions:
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: actions
|
|
build-mode: none
|
|
# - language: go
|
|
# build-mode: manual
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: ${{ matrix.build-mode }}
|
|
|
|
# - if: matrix.build-mode == 'manual'
|
|
# shell: bash
|
|
# run: |
|
|
# sudo apt-get update && sudo apt-get install -y libseccomp-dev
|
|
# ./scripts/download
|
|
# ./scripts/build
|
|
# ./scripts/package-cli
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|