Skip to content

Commit

Permalink
Create security.yml (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious authored Sep 3, 2024
1 parent d502e5c commit 845c3c1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Security

on:
workflow_dispatch: {}
schedule:
- cron: "0 13 * * 1" # 8am CT on Mondays

jobs:
scan-for-vulns:
runs-on: ubuntu-latest
container:
image: public.ecr.aws/opslevel/platform-tools:latest
env:
ORG_GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_TOKEN }}
GRYPE_INTEGRATION_SECRET: ${{ secrets.GRYPE_INTEGRATION_SECRET }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ORG_GITHUB_TOKEN }}
- name: Scan
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
grype dir:$(pwd) --only-fixed -o json | jq '{"matches": .matches}' |
curl -s -X POST https://upload.opslevel.com/integrations/custom_event/${GRYPE_INTEGRATION_SECRET}?alias=opslevel_kubernetes_sync -H 'content-type: application/json' --data-binary @-

0 comments on commit 845c3c1

Please sign in to comment.