From 8218e268b2bd14856e02964f228a1e3659b4979c Mon Sep 17 00:00:00 2001 From: Juan Jose Jaramillo Date: Fri, 28 Jun 2024 11:43:15 -0700 Subject: [PATCH] feat: Security pipeline (#73) --- .github/security.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/security.yml diff --git a/.github/security.yml b/.github/security.yml new file mode 100644 index 00000000..6932654c --- /dev/null +++ b/.github/security.yml @@ -0,0 +1,20 @@ +name: Security Scan + +on: + push: + branches: + - main + - renovate/** + pull_request: + schedule: + - cron: "0 3 * * *" + +jobs: + trivy: + permissions: + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/upload-sarif to upload SARIF results + uses: newrelic/k8s-agents-automation/.github/workflows/reusable-security.yaml@main + secrets: + slack_channel: ${{ secrets.K8S_AGENTS_SLACK_CHANNEL }} + slack_token: ${{ secrets.K8S_AGENTS_SLACK_TOKEN }}