From c0b76ff3e1a07aa2de9bbfa9c2e3f62d9ec86b29 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Tue, 31 Oct 2023 09:16:14 -0500 Subject: [PATCH] fix(ci): use github output for security.yml (#197) --- .github/workflows/security.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index cc458cb..f816cc8 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -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 }}'