Fix CodeQL workflow

This commit is contained in:
abhisek 2023-02-03 12:46:48 +05:30
parent 881808262e
commit 7cc28dab11
No known key found for this signature in database
GPG Key ID: CB92A4990C02A88F
2 changed files with 5 additions and 15 deletions

View File

@ -48,21 +48,9 @@ jobs:
# 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, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# 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
- run: |
go mod tidy
go build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

View File

@ -4,6 +4,8 @@
helps engineering and security teams to identify potential issues in their open
source dependencies and evaluate them against organizational policies.
[CodeQL](https://github.com/safedep/vet/actions/workflows/codeql.yml/badge.svg?branch=main&event=push)
## TL;DR
> Ensure `$(go env GOPATH)/bin` is in your `$PATH`