mirror of
https://github.com/ivuorinen/a.git
synced 2026-01-26 03:24:07 +00:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
name: 'CodeQL'
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
branches: ['main']
|
|
schedule:
|
|
- cron: '30 1 * * 0' # Run at 1:30 AM UTC every Sunday
|
|
merge_group:
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: ['go'] # Add languages used in your actions
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: security-and-quality
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11
|
|
with:
|
|
category: '/language:${{matrix.language}}'
|