fix(ci): use github output for security.yml (#197)

This commit is contained in:
Jeremy Kahn 2023-10-31 09:16:14 -05:00 committed by GitHub
parent 24ccf44ce0
commit c0b76ff3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,10 @@ jobs:
runs-on: ubuntu-latest
name: Scan Production Site
steps:
- name: Set Date (NOW) as Env Var
- name: Set Date (NOW) as Variable
id: set-now
run: |
echo "::set-env name=NOW::$(date +'%Y-%m-%d')"
echo "NOW=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
- name: Checkout Main Branch for .zap/rules.tsv
uses: actions/checkout@v4
@ -30,5 +31,5 @@ jobs:
with:
target: 'https://chitchatter.im/'
rules_file_name: '.zap/rules.tsv'
issue_title: 'Security Report - ${{ env.NOW }}'
artifact_name: 'zap_scan_${{ env.NOW }}'
issue_title: 'Security Report - ${{ steps.set-now.outputs.NOW }}'
artifact_name: 'zap_scan_${{ steps.set-now.outputs.NOW }}'