Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explore paranoia action #115

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
23 changes: 21 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Security
on:
pull_request:
types: [opened]
push:
name: Security
env:
CONTAINER_TAR: "container.tar"
jobs:
gosec:
runs-on: ubuntu-latest
Expand All @@ -12,4 +14,21 @@ jobs:
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...
args: ./...
paranoia:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: "Build container"
run: |
docker build -t rond-security-check .
- name: "Save container to tar"
run: |
docker save rond-security-check > $CONTAINER_TAR
- name: Jetstack Paranoia
uses: jetstack/paranoia@v0.2.1
with:
config: .paranoia.yml
permissive: true # TODO: understand actually needed certificate and make this false
target_tar: file://${{ env.CONTAINER_TAR }}
2 changes: 2 additions & 0 deletions .paranoia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1"
allow: