Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/warden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,22 @@ jobs:
private-key: ${{ secrets.WARDEN_PRIVATE_KEY }}
owner: ${{ github.repository_owner }} # access to all repos, cause this is triggered on org level

- uses: getsentry/warden@v0
id: warden
continue-on-error: true # throw no error for now
- name: Analyze
id: warden-analyze
uses: getsentry/warden@v0
continue-on-error: true
with:
github-token: ${{ steps.app-token.outputs.token }}
mode: analyze
base-config-path: .warden-org/warden.toml
Comment thread
sentry[bot] marked this conversation as resolved.

- name: Report
if: always() && steps.warden-analyze.outputs.findings-file != ''
uses: getsentry/warden@v0
with:
mode: report
findings-file: ${{ steps.warden-analyze.outputs.findings-file }}
Comment thread
cursor[bot] marked this conversation as resolved.
github-token: ${{ steps.app-token.outputs.token }}
Comment thread
cursor[bot] marked this conversation as resolved.
Comment thread
sentry[bot] marked this conversation as resolved.

- name: Authenticate to Google Cloud
continue-on-error: true
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
Expand All @@ -57,9 +66,9 @@ jobs:

- name: Rename findings file with timestamp
id: rename-findings
if: always() && steps.warden.outputs.findings-file != ''
if: always() && steps.warden-analyze.outputs.findings-file != ''
Comment thread
sentry[bot] marked this conversation as resolved.
Outdated
env:
FINDINGS_FILE: ${{ steps.warden.outputs.findings-file }}
FINDINGS_FILE: ${{ steps.warden-analyze.outputs.findings-file }}
run: |
DEST="$RUNNER_TEMP/$(date -u +%Y-%m-%dT%H%M%SZ).json"
cp "$FINDINGS_FILE" "$DEST"
Expand Down
Loading