Skip to content

Commit

Permalink
cleaning up codeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dkontyko committed Sep 23, 2023
1 parent 89bcb65 commit 70be404
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ jobs:
changes:
uses: ./.github/workflows/filter-changes.yml

analyze:
build:
needs: changes
if: ${{ needs.changes.outputs.function-app == 'true' }}
uses: ./.github/workflows/maven.yml

analyze:
needs: build
if: ${{ success() }}
name: Analyze
runs-on: windows-latest
timeout-minutes: 30
Expand All @@ -35,31 +40,12 @@ jobs:
language: [ 'java' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

# Autobuild doesn't work.
- name: Setup Java Sdk ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: 'Restore Project Dependencies Using Mvn'
shell: pwsh
run: |
pushd './${{ env.PACKAGE_DIRECTORY }}'
mvn clean package
popd
- name: Build with Maven
run: mvn -B package --file ${{ env.PACKAGE_DIRECTORY }}/pom.xml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
Expand Down

0 comments on commit 70be404

Please sign in to comment.