action-baseline icon indicating copy to clipboard operation
action-baseline copied to clipboard

Feature Request: Allow specifying artifact name

Open iamjoeker opened this issue 4 years ago • 6 comments

I use a single workflow file to run zap scans on multiple sites. Each site is its own job so they can fail or succeed independently. However, since the artifact name is hard-coded, only the report of the last job to complete is saved.

Would the project be open to a adding support for specifying the artifact name as an option? I'd be glad to submit PRs both here and in actions-common to add this.

iamjoeker avatar Dec 14 '20 16:12 iamjoeker

Sounds good to me! PR much appreciated :)

psiinon avatar Dec 21 '20 11:12 psiinon

I would also like this. Maybe I will work on this sometime.

AlexDCraig avatar Aug 24 '21 21:08 AlexDCraig

@psiinon this issue is resolved with the merging in of this patch to the upstream common library (https://github.com/zaproxy/actions-common/pull/15) and this patch to this repo (https://github.com/zaproxy/action-baseline/pull/64)

AlexDCraig avatar Oct 06 '21 16:10 AlexDCraig

is this feature available to be used yet?

Israphel avatar Apr 22 '22 16:04 Israphel

Sorry no, #64 hasnt been merged yet - its still WIP, I'll see whats blocking it...

psiinon avatar Apr 22 '22 16:04 psiinon

I'm using a workaround for the moment, if anybody is interested:

  job-one:
    name: Dast report for site one
    runs-on: ubuntu-latest
    steps:
      - name: ZAP Scan
        uses: zaproxy/[email protected]
        with:
          issue_title: site-one
          token: ${{ secrets.GITHUB_TOKEN }}
          fail_action: false
          target: 'https://siteone.com'
          format: openapi

      - name: Upload report
        uses: actions/upload-artifact@v3
        with:
          name: custom_name.zip
          path: zap_scan.zip

Israphel avatar Apr 22 '22 16:04 Israphel