From 1adc8d1a045eeb72f0eeb50ac85b1a267a6222d3 Mon Sep 17 00:00:00 2001 From: Valtteri Lehtinen Date: Fri, 12 Apr 2024 13:00:39 +0300 Subject: [PATCH] Fix workflow --- .github/workflows/main.yml | 2 +- README.md | 2 +- action.yml | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5627610..6abed4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: uses: Molemmat-Oy/opalopc-scan-action@development with: target-url: 'opc.tcp://scanme.opalopc.com:53530' - license-key: ${{ secrets.opalopc-license-key }} + license-key: ${{ secrets.OPALOPC_LICENSE_KEY }} - name: Verify the reports exist run: | diff --git a/README.md b/README.md index 74d9f1b..b81ddaf 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ steps: uses: Molemmat-Oy/opalopc-scan-action@main with: target-url: 'opc.tcp://scanme.opalopc.com:53530' - license-key: ${{ secrets.opalopc-license-key }} + license-key: ${{ secrets.OPALOPC_LICENSE_KEY }} ``` ## Suggested Usage diff --git a/action.yml b/action.yml index 5b597f9..1ae857a 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: 'OpalOPC Scan Action' description: 'Runs a OpalOPC scan against a target site' author: 'Molemmat Oy' inputs: - target: + target-url: description: 'The full url (including scheme) of the server to scan' required: true license-key: @@ -15,14 +15,12 @@ inputs: runs: using: 'docker' image: 'Dockerfile' - entrypoint: 'sh -c' + entrypoint: "sh" env: OPALOPC_LICENSE_KEY: ${{ inputs.license-key }} args: - - opalopc - - -vv - - ${{ inputs.target }} - - -o ${{ inputs.output-base-filename }} + - -c + - opalopc -vv -o "${{ inputs.output-base-filename }}" "${{ inputs.target-url }}" branding: icon: 'activity' color: 'blue'