Skip to content

Commit 2dc7da9

Browse files
committed
Update secrets scanning workflow
1 parent 42d9a0b commit 2dc7da9

3 files changed

Lines changed: 151 additions & 149 deletions

File tree

‎.github/workflows/gradle-build.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
java-version: 21
1919
distribution: 'temurin'
2020
cache: gradle
21-
- name: Detect Secrets
22-
uses: RobertFischer/detect-secrets-action@v2.0.0
21+
- name: Detect secrets
22+
run: |
23+
pip install detect-secrets
24+
git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
2325
- name: Grant Execute permission for gradlew
2426
run: chmod +x gradlew
2527
- name: Build with Gradle

‎.github/workflows/preview-and-release.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ jobs:
3737
java-version: ${{ env.JAVA_VERSION }}
3838
distribution: ${{ env.JAVA_DISTRIBUTION}}
3939
cache: gradle
40-
- name: Easy detect-secrets
41-
uses: RobertFischer/detect-secrets-action@v2.0.0
40+
- name: Detect secrets
41+
run: |
42+
pip install detect-secrets
43+
git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
4244
- name: Download File
4345
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
4446
shell: pwsh
@@ -70,8 +72,10 @@ jobs:
7072
java-version: ${{ env.JAVA_VERSION }}
7173
distribution: ${{ env.JAVA_DISTRIBUTION}}
7274
cache: gradle
73-
- name: Easy detect-secrets
74-
uses: RobertFischer/detect-secrets-action@v2.0.0
75+
- name: Detect secrets
76+
run: |
77+
pip install detect-secrets
78+
git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
7579
- name: Download File
7680
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
7781
shell: pwsh

‎.secrets.baseline‎

Lines changed: 139 additions & 143 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)