Skip to content

Commit fc036dd

Browse files
piyush-gargtekton-robot
authored andcommitted
Fix codeql github action
This will fix codeql action as it was not able to scan with autobuild step failing and also add cache
1 parent e519a8a commit fc036dd

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/codeql-analysis.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,21 @@ jobs:
5050
# Prefix the list here with "+" to use these queries and those in the config file.
5151
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53+
# setup cache to speed up the action
54+
- uses: actions/cache@v4
55+
with:
56+
path: |
57+
~/.cache/go-build
58+
~/.cache/pip
59+
~/go/pkg/mod
60+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
61+
restore-keys: |
62+
${{ runner.os }}-go-
63+
5364
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5465
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v3
66+
# - name: Autobuild
67+
# uses: github/codeql-action/autobuild@v3
5768

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

80+
- run: |
81+
make bin/tkn
82+
6983
- name: Perform CodeQL Analysis
7084
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)