Skip to content

Commit

Permalink
Update codeql-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jheng-hao-lin-cko authored Oct 5, 2023
1 parent 9cfe7b2 commit 6cd85f3
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@ on:
- cron: '34 2 * * 0'

jobs:
setup:
name: Setup Environment
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: corretto
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew

analyze:
name: Code Analyze
runs-on: ubuntu-latest
Expand All @@ -42,6 +25,21 @@ jobs:
language: [ 'java' ]

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: corretto
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
Expand Down

0 comments on commit 6cd85f3

Please sign in to comment.