Skip to content

Commit

Permalink
chore: fix issues with missing secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Dec 8, 2023
1 parent 4302d8a commit 88060ed
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ jobs:
custom-job-label: Standard
enable-codecov-analysis: true
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}

sonar:
Expand All @@ -93,6 +95,8 @@ jobs:
custom-job-label: Standard
enable-sonar-analysis: true
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
sonar-token: ${{ secrets.SONAR_TOKEN }}

snyk:
Expand All @@ -105,4 +109,6 @@ jobs:
custom-job-label: Standard
enable-snyk-scan: true
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
snyk-token: ${{ secrets.SNYK_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/zxc-code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ on:
required: false
default: "Analyze"
secrets:
gradle-cache-username:
description: "The username used to authenticate with the Gradle Build Cache Node."
required: true
gradle-cache-password:
description: "The password used to authenticate with the Gradle Build Cache Node."
required: true
sonar-token:
description: "The SonarCloud access token used by the SonarQube agent to report an analysis."
required: false
Expand All @@ -87,6 +93,10 @@ permissions:
checks: write
statuses: write

env:
GRADLE_CACHE_USERNAME: ${{ secrets.gradle-cache-username }}
GRADLE_CACHE_PASSWORD: ${{ secrets.gradle-cache-password }}

jobs:
analyze:
name: ${{ inputs.custom-job-label || 'Analyze' }}
Expand Down Expand Up @@ -127,6 +137,12 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.codecov-token }}

- name: Compile
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: assemble --scan

- name: SonarCloud Options
id: sonar-cloud
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/zxf-snyk-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
permissions:
contents: read

env:
GRADLE_CACHE_USERNAME: ${{ secrets.GRADLE_CACHE_USERNAME }}
GRADLE_CACHE_PASSWORD: ${{ secrets.GRADLE_CACHE_PASSWORD }}

jobs:
snyk:
name: Snyk Monitor
Expand Down

0 comments on commit 88060ed

Please sign in to comment.