Skip to content

Instantly share code, notes, and snippets.

@tomarv2
Created February 28, 2021 05:47
Show Gist options
  • Save tomarv2/8b2cc2036e3dc41f8f92b4e0a07fa6f5 to your computer and use it in GitHub Desktop.
Save tomarv2/8b2cc2036e3dc41f8f92b4e0a07fa6f5 to your computer and use it in GitHub Desktop.
GitHub Actions for security scan of Lambda using BridgeCrew
name: Security Scans
on:
push:
branches:
- main
- develop
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- '**.md'
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- '**.md'
jobs:
go-tests:
name: Security Scans
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Security Scan
id: Bridgecrew
uses: bridgecrewio/bridgecrew-action@master
with:
api-key: ${{ secrets.BRIDGECREW_API_KEY }}
directory: "."
soft_fail: false
# BC: "check_name": "X-ray tracing is enabled for Lambda" - disabled
skip_check: CKV_AWS_50
output_format: json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment