Skip to content

Refactor CodeQL workflows #1

Refactor CodeQL workflows

Refactor CodeQL workflows #1

# Copyright (C) 2025 Roberto Rossini <[email protected]>
# SPDX-License-Identifier: MIT
name: Run CodeQL analysis (actions)
on:
push:
branches: [main]
paths:
- ".github/workflows/*.yml"
pull_request:
paths:
- ".github/workflows/*.yml"
schedule:
- cron: "0 5 1 * *" # run monthly at 05:00
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
analyze:
name: Analyze (actions)
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: actions
build-mode: none
- name: Run Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:actions"