Skip to content

Commit 95a814d

Browse files
Merge pull request #11 from rajbos/main
Updated exercise with supported action version
2 parents 08e46e9 + abd5f6c commit 95a814d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

exercises/codeql-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
When you want to generate a CodeQL database locally and run the pre-compiled queries against it, this is the way to go.
44

55
First let's download the CodeQL bundle! Head over [here](https://github.com/github/codeql-action/releases ) and download the approprate bundle for your operating system.
6-
Once it's downloaded, untar the content to a CodeQL home folder and you can add CodeQL to your path if you'd like
6+
Once it's downloaded, untar the content to a CodeQL home folder and you can add CodeQL to your path if you'd like (or use Brew install for this)
77

88
```
99
export PATH="/Documents/codeql-home/codeql:$PATH"

exercises/lab 3 - code-scanning.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ CodeQL requires a build of compiled languages. An analysis job can fail if our *
4949
<details>
5050
<summary>Solution</summary>
5151

52-
uses: actions/setup-java@v1
52+
- name: Setup Java JDK
53+
uses: actions/setup-java@v2.2.0
54+
if: matrix.language == 'java'
5355
with:
54-
java-version: 15
56+
java-version: 15
57+
distribution: 'zulu'
5558

5659
</details>
5760

0 commit comments

Comments
 (0)