mirror of
https://github.com/netbirdio/ice-old.git
synced 2026-05-22 17:08:24 -07:00
d14cb7e231
Update lint scripts and CI configs.
41 lines
865 B
YAML
41 lines
865 B
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '23 5 * * 0'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**.go'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
|
|
# The code in examples/ might intentionally do things like log credentials
|
|
# in order to show how the library is used, aid in debugging etc. We
|
|
# should ignore those for CodeQL scanning, and only focus on the package
|
|
# itself.
|
|
- name: Remove example code
|
|
run: |
|
|
rm -rf examples/
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: 'go'
|
|
|
|
- name: CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|