ants/.github/workflows/codeql.yml

72 lines
2.2 KiB
YAML
Raw Normal View History

2022-11-20 06:17:50 +03:00
name: "Code scanning"
on:
push:
2022-05-06 17:32:56 +03:00
branches:
- master
- dev
2023-05-21 11:04:11 +03:00
paths-ignore:
- '**.md'
- '**.yml'
- '**.yaml'
- '!.github/workflows/codeql.yml'
pull_request:
2022-05-06 17:32:56 +03:00
branches:
- master
2022-11-20 06:17:50 +03:00
- dev
paths-ignore:
- '**.md'
- '**.yml'
- '**.yaml'
- '!.github/workflows/codeql.yml'
schedule:
2022-11-20 06:17:50 +03:00
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 4 * * 6'
jobs:
2022-11-20 06:17:50 +03:00
CodeQL-Build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
2022-11-26 21:25:39 +03:00
runs-on: ubuntu-latest
2022-11-20 06:17:50 +03:00
permissions:
# required for all workflows
security-events: write
steps:
- name: Checkout repository
2024-02-05 13:59:34 +03:00
uses: actions/checkout@v4
with:
fetch-depth: 2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
2024-02-05 13:59:34 +03:00
uses: github/codeql-action/init@v3
2022-11-20 06:17:50 +03:00
with:
languages: go
2022-11-20 06:17:50 +03:00
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below).
- name: Autobuild
2024-02-05 13:59:34 +03:00
uses: github/codeql-action/autobuild@v3
# Command-line programs to run using the OS shell.
2022-11-20 06:17:50 +03:00
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
2022-11-20 06:17:50 +03:00
# ✏️ If the Autobuild fails above, remove it and uncomment the following
# three lines and modify them (or add more) to build your code if your
# project uses a compiled language
#- run: |
2022-11-20 06:17:50 +03:00
# make bootstrap
# make release
- name: Perform CodeQL Analysis
2024-02-05 13:59:34 +03:00
uses: github/codeql-action/analyze@v3