Skip to content

Commit c0ffad4

Browse files
chore: APP-6323 Update Security Alerts (#555)
- Removed slack notification logic from trivy. offloading that capability to Synk.
1 parent c8997c2 commit c0ffad4

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

.github/actions/trivy/action.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ inputs:
1010
description: Whether to add a comment to the PR with the Trivy scan results
1111
required: false
1212
default: 'true'
13-
slack-webhook-url:
14-
description: Slack webhook URL for notifications
15-
required: false
1613

1714
runs:
1815
using: 'composite'
@@ -146,33 +143,3 @@ runs:
146143
env:
147144
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
148145
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1
149-
150-
- name: Send Slack Notification for Vulnerabilities
151-
if: inputs.add-report-comment-to-pr == 'true' && inputs.slack-webhook-url != ''
152-
uses: 8398a7/action-slack@v3
153-
with:
154-
status: ${{ job.status }}
155-
author_name: Github-Actions
156-
fields: repo,workflow
157-
text: "🚨 *Security Alert: High/Critical Vulnerabilities Detected* \n
158-
Repository: ${{ github.repository }} \n
159-
Branch: ${{ github.ref_name }} \n
160-
PR: ${{ github.event.pull_request.html_url }} \n
161-
, please review and address these vulnerabilities."
162-
env:
163-
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url }}
164-
165-
- name: Send Slack Notification for Secrets
166-
if: inputs.add-report-comment-to-pr == 'true' && inputs.slack-webhook-url != ''
167-
uses: 8398a7/action-slack@v3
168-
with:
169-
status: ${{ job.status }}
170-
author_name: Github-Actions
171-
fields: repo,workflow
172-
text: "🔒 *Security Alert: Secrets Detected* \n
173-
Repository: ${{ github.repository }} \n
174-
Branch: ${{ github.ref_name }} \n
175-
PR: ${{ github.event.pull_request.html_url }} \n
176-
, please review and remove any exposed secrets."
177-
env:
178-
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url }}

0 commit comments

Comments
 (0)