mirror of
https://github.com/MedzikUser/go-utils.git
synced 2024-08-15 03:26:56 +00:00
46 lines
1,006 B
YAML
46 lines
1,006 B
YAML
|
|
||
|
name: "CodeQL"
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
|
||
|
pull_request:
|
||
|
branches:
|
||
|
|
||
|
schedule:
|
||
|
- cron: '42 7 * * 0'
|
||
|
|
||
|
jobs:
|
||
|
analyze:
|
||
|
name: Analyze
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
permissions:
|
||
|
actions: read
|
||
|
contents: read
|
||
|
security-events: write
|
||
|
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
language: [ 'go' ]
|
||
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||
|
# Learn more:
|
||
|
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||
|
|
||
|
steps:
|
||
|
- name: Clone repository
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Initialize CodeQL
|
||
|
uses: github/codeql-action/init@v1
|
||
|
with:
|
||
|
languages: ${{ matrix.language }}
|
||
|
|
||
|
- name: Autobuild
|
||
|
uses: github/codeql-action/autobuild@v1
|
||
|
|
||
|
- name: Perform CodeQL Analysis
|
||
|
uses: github/codeql-action/analyze@v1
|