Skip to content

chore: add workflows #4

chore: add workflows

chore: add workflows #4

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '46 13 * * 1'
jobs:
analyze:
name: Analyze ${{ matrix.module }}
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
matrix:
module: ['print2pdf', 'plain', 'lambda']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
cache-dependency-path: ${{ matrix.module }}/go.sum
go-version-file: ${{ matrix.module }}/go.mod
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go
build-mode: manual
source-root: ${{ matrix.module }}
- name: Build
run: go build -C ${{ matrix.module }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:go'
checkout_path: