Skip to content
Merged
Changes from all commits
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
14 changes: 13 additions & 1 deletion .github/workflows/guardrail-audit-alert.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
################################################################################
# guardrail-audit-alert
#
# Detect when commits are pushed directly to `main` rather than via PR.
#
# Set a repository variable `GUARDRAIL_AUDIT_ALERT_ENABLED` to true in
# the repository or fork for which you wish to enable this alert.
#
# The fork owner is responsible for setting the SLACK_WEBHOOK_URL
# appropriately to allow a message to be sent to the appropriate
# workspace and channel.
################################################################################
name: Guardrail Push Alerts
on:
push:
Expand All @@ -7,7 +19,7 @@ jobs:
slack-alert:
runs-on: ubuntu-latest
permissions: {} # Explicitly drops all token permissions
if: github.actor != 'dependabot[bot]'
if: vars.GUARDRAIL_AUDIT_ALERT_ENABLED == 'true' && github.actor != 'dependabot[bot]'
steps:
- name: Process and Format Slack Alert
env:
Expand Down
Loading