Skip to content

Commit 42ee856

Browse files
committed
Fix failing code analysis
1 parent a1d8836 commit 42ee856

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
# Checkout must run before the caching key is computed using the `hashFiles` method
3434

3535
- name: Cache Gradle Modules
36+
if: ${{ matrix.language == 'java' }}
3637
uses: actions/cache@v5
3738
with:
3839
path: |
@@ -41,7 +42,6 @@ jobs:
4142
~/.gradle/caches/signatures/
4243
~/.gradle/caches/keyrings/
4344
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
44-
if: ${{ matrix.language == 'java' }}
4545

4646
- name: Disable checksum offloading
4747
# See: https://github.com/actions/virtual-environments/issues/1187#issuecomment-686735760
@@ -78,6 +78,14 @@ jobs:
7878
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_PRIVATE_KEY_ID }}
7979
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
8080

81+
- name: Check package credentials
82+
run: |
83+
test -n "$PACKAGES_USER" || { echo "PACKAGES_USER missing"; exit 1; }
84+
test -n "$PACKAGES_ACCESS_TOKEN" || { echo "PACKAGES_ACCESS_TOKEN missing"; exit 1; }
85+
env:
86+
PACKAGES_USER: ${{ secrets.PACKAGES_USER }}
87+
PACKAGES_ACCESS_TOKEN: ${{ secrets.PACKAGES_ACCESS_TOKEN }}
88+
8189
- name: Compile with Gradle without Build Scan
8290
if: ${{ matrix.language == 'java' && github.repository_owner != 'gradle' }}
8391
run: ./gradlew --init-script .github/workflows/codeql-analysis.init.gradle -S testClasses

0 commit comments

Comments
 (0)