From 002e3ed2ba19cc800e195a86ba4d618e3ed30d28 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Fri, 11 Dec 2020 11:49:22 +0100 Subject: [PATCH] security tests for autoconf and ui --- .../autotest-bunkerized-nginx-autoconf.yml | 26 +++++++++++++++++++ .../autotest-bunkerized-nginx-ui.yml | 26 +++++++++++++++++++ ...test.yml => autotest-bunkerized-nginx.yml} | 0 3 files changed, 52 insertions(+) create mode 100644 .github/workflows/autotest-bunkerized-nginx-autoconf.yml create mode 100644 .github/workflows/autotest-bunkerized-nginx-ui.yml rename .github/workflows/{autotest.yml => autotest-bunkerized-nginx.yml} (100%) diff --git a/.github/workflows/autotest-bunkerized-nginx-autoconf.yml b/.github/workflows/autotest-bunkerized-nginx-autoconf.yml new file mode 100644 index 0000000..fcc74b3 --- /dev/null +++ b/.github/workflows/autotest-bunkerized-nginx-autoconf.yml @@ -0,0 +1,26 @@ +name: Automatic test on autoconf + +on: + push: + branches: [dev, master] + pull_request: + branches: [dev, master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v2 + - name: Build the image + run: docker build -t autotest-autoconf -f autoconf/Dockerfile . + - name: Run Trivy security scanner + uses: aquasecurity/trivy-action@master + with: + image-ref: 'autotest-autoconf' + format: 'table' + exit-code: '1' + ignore-unfixed: true + severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL' + + diff --git a/.github/workflows/autotest-bunkerized-nginx-ui.yml b/.github/workflows/autotest-bunkerized-nginx-ui.yml new file mode 100644 index 0000000..0ad629b --- /dev/null +++ b/.github/workflows/autotest-bunkerized-nginx-ui.yml @@ -0,0 +1,26 @@ +name: Automatic test on ui + +on: + push: + branches: [dev, master] + pull_request: + branches: [dev, master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v2 + - name: Build the image + run: docker build -t autotest-ui -f ui/Dockerfile . + - name: Run Trivy security scanner + uses: aquasecurity/trivy-action@master + with: + image-ref: 'autotest-ui' + format: 'table' + exit-code: '1' + ignore-unfixed: true + severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL' + + diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest-bunkerized-nginx.yml similarity index 100% rename from .github/workflows/autotest.yml rename to .github/workflows/autotest-bunkerized-nginx.yml