From 8127e772ffde485ce9db1d9b306b7943262f57ee Mon Sep 17 00:00:00 2001 From: Simon Bennetts Date: Mon, 7 Nov 2022 12:29:32 +0100 Subject: [PATCH] Add check-run action And use checkout@v3 Signed-off-by: Simon Bennetts --- .github/workflows/check-dist.yml | 2 +- .github/workflows/check-run.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-run.yml diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index bddb3bb..77b0df2 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set Node.js uses: actions/setup-node@v2 diff --git a/.github/workflows/check-run.yml b/.github/workflows/check-run.yml new file mode 100644 index 0000000..7fe87e9 --- /dev/null +++ b/.github/workflows/check-run.yml @@ -0,0 +1,29 @@ +name: Check run + +on: + push: + branches: + - master + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' + workflow_dispatch: + +jobs: + check-run: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - run: sudo apt-get update && sudo apt-get install -y nginx && sudo systemctl start nginx + + - name: ZAP Scan + uses: ./ + id: action-full-scan + with: + target: 'http://localhost' + allow_issue_writing: false \ No newline at end of file