Skip to content

Commit

Permalink
CodeQL Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkenneth committed Feb 21, 2024
1 parent 6d0873e commit a287f50
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,27 @@ name: "CodeQL"
on:
push:
branches: ["master"]
paths-ignore:
- "**/*.md"
- "**/*.yml"
- "docs/**"
- "examples/**"
- "config/**"
pull_request:
branches: ["master"]
paths-ignore:
- "**/*.md"
- "**/*.yml"
- "docs/**"
- "examples/**"
- "config/**"
schedule:
- cron: "29 7 * * 4"

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
Expand Down Expand Up @@ -64,20 +70,10 @@ jobs:
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: Build baseca
run: |
go mod verify
make build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit a287f50

Please sign in to comment.