Skip to content

Commit 08b7eb7

Browse files
committed
Adding caching to the Setup CodeQL action.
1 parent 555e08a commit 08b7eb7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/actions/install-codeql/action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@ inputs:
99
runs:
1010
using: composite
1111
steps:
12-
# TODO: Consider to introduce caching for the CodeQL CLI.
12+
- name: Cache CodeQL
13+
id: cache-codeql
14+
uses: actions/cache@v4
15+
with:
16+
# A list of files, directories, and wildcard patterns to cache and restore
17+
path: ${{github.workspace}}/codeql_home
18+
# An explicit key for restoring and saving the cache
19+
key: codeql-home-${{ inputs.codeql-cli-version }}
20+
1321
- name: Install CodeQL
14-
# if: steps.cache-codeql.outputs.cache-hit != 'true'
22+
if: steps.cache-codeql.outputs.cache-hit != 'true'
1523
shell: bash
1624
env:
1725
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)