Skip to content

Commit

Permalink
Update security.yml (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious authored Sep 5, 2024
1 parent a7ddc37 commit 333560e
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,8 @@ on:
- 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 @-
call-grype:
uses: opslevel/actions/.github/workflows/grype.yml@main
with:
alias: opslevel_kubernetes_sync
secrets: inherit

0 comments on commit 333560e

Please sign in to comment.