diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 39525fc..2410001 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,9 @@ defaults: run: shell: bash +env: + MSVC_DEV_FILES_DIR: ${{ github.secret_source == 'Actions' && vars.MSVC_DEV_FILES_DIR ||'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\' }} + jobs: analyse: name: Analyse @@ -32,6 +35,6 @@ jobs: with: languages: java - name: Build - run: mvn -B compile -DdevCommandFileDir="${{ vars.MSVC_DEV_FILES_DIR }}" + run: mvn -B compile -DdevCommandFileDir="${{ env.MSVC_DEV_FILES_DIR }}" - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 \ No newline at end of file