Skip to content

Commit

Permalink
Fix codeql github action
Browse files Browse the repository at this point in the history
This will fix codeql action as it was not able to scan
with autobuild step failing and also add cache
  • Loading branch information
piyush-garg committed Mar 27, 2024
1 parent e519a8a commit 39d8d1a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,21 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# setup cache to speed up the action
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/.cache/pip
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# Autobuild attempts to build any compiled languages (C/C++, C#, 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@v3
# - name: Autobuild
# uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -66,5 +77,8 @@ jobs:
# make bootstrap
# make release

- run: |
make bin/tkn
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit 39d8d1a

Please sign in to comment.