Skip to content

Codeql analysis

Codeql analysis #379

on:
workflow_dispatch:
schedule:
- cron: 0 6 * * *
push:
branches:
- main
paths:
- .github/workflows/codeql-analysis.yml
permissions: {}
name: Codeql analysis
jobs:
csharp:
name: CodeQL analysis (C#)
runs-on: windows-2025-vs2026
permissions:
contents: read
packages: read
security-events: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
persist-credentials: false
- name: Install resources
run: ./install.resources.sh x64 Q16-HDRI
working-directory: src/Magick.Native
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Initialize CodeQL
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd #4.37.7
with:
languages: csharp
- name: Build Magick.NET (Release)
run: ./build.Magick.NET.cmd Q16-HDRI "x64" Release
working-directory: build/windows
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd #4.37.7
actions:
name: CodeQL analysis (GitHub Actions)
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd #4.37.7
with:
languages: actions
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd #4.37.7