mirror of
https://github.com/Luzifer/ots.git
synced 2025-12-25 21:04:33 -05:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
---
|
|
name: 'CodeQL'
|
|
|
|
on:
|
|
push:
|
|
branches: ['master']
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: ['master']
|
|
schedule:
|
|
- cron: '38 21 * * 3'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: 'ubuntu-latest'
|
|
timeout-minutes: 360
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: ['go', 'javascript']
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
|
|
with:
|
|
build-mode: ${{ matrix.language == 'go' && 'autobuild' || '' }}
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
|
|
with:
|
|
category: '/language:${{matrix.language}}'
|