Skip to content

Commit

Permalink
ci: Fix source-root and use sparse checkout instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Oct 13, 2023
1 parent 11af60c commit d4aa43b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/codeql-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ jobs:
analyze-java:
name: Analyze Java
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend/
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
sparse-checkout: backend/
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java
source-root: backend/
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/codeql-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ jobs:
analyze-js:
name: Analyze JavaScript
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend/
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
sparse-checkout: frontend/
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
source-root: frontend/
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/codeql-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ jobs:
analyze-js:
name: Analyze JavaScript
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
sparse-checkout: services/
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
source-root: services/
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
Expand Down

0 comments on commit d4aa43b

Please sign in to comment.