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 df2b3bf
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,20 @@ jobs:
# By default, queries listed here will override any specified in a config file.
# 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
- 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 +75,8 @@ jobs:
# make bootstrap
# make release

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

0 comments on commit df2b3bf

Please sign in to comment.