Skip to content

Commit

Permalink
Update infisical-secrets-check.yml (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Jul 6, 2024
1 parent 048cb96 commit af12998
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/infisical-secrets-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:

secrets-scan:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:

- name: Checkout repo
Expand All @@ -33,14 +36,14 @@ jobs:
run: infisical scan --redact -f csv -r secrets-result.csv 2>&1 | tee >(sed -r 's/\x1b\[[0-9;]*m//g' > secrets-result.log)

- name: Read secrets-result.log
uses: guibranco/github-file-reader-action-v2@v2.1.535
uses: guibranco/github-file-reader-action-v2@v2.2.583
if: always()
id: log
with:
path: secrets-result.log

- name: Read secrets-result.log
uses: guibranco/github-file-reader-action-v2@v2.1.535
uses: guibranco/github-file-reader-action-v2@v2.2.583
if: failure()
id: report
with:
Expand All @@ -61,7 +64,7 @@ jobs:
```
message-failure: |
**Infisical secrets check:** :rotating_light: Secrets leaked!.
**Infisical secrets check:** :rotating_light: Secrets leaked!
**Scan results:**
```
Expand All @@ -72,4 +75,4 @@ jobs:
${{ steps.report.outputs.contents }}
```
message-cancelled: |
**Infisical secrets check:** :o: Secrets check cancelled!.
**Infisical secrets check:** :o: Secrets check cancelled!

0 comments on commit af12998

Please sign in to comment.