Skip to content

Commit

Permalink
Update security.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderM91 authored Oct 12, 2023
1 parent 6b69609 commit 402ed46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:

- name: Set Date and Time
id: set-date
run: echo "DATE_TIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
run: echo "::set-output name=current_datetime::$(date +'%Y-%m-%d %H:%M:%S')"

- name: Set Color
id: set-color
Expand All @@ -103,7 +103,7 @@ jobs:
"text": "Scanned image tag *${{ matrix.tags }}*.",
"attachments": [
{
"pretext": "Vulnerability scan outputs for $GITHUB_ENV_DATE_TIME",
"pretext": "Vulnerability scan outputs for $DATE_TIME",
"color": "$GITHUB_ENV_COLOR",
"fields": [
{
Expand All @@ -116,7 +116,7 @@ jobs:
]
}
env:
DATE_TIME: ${{ steps.set-date.outputs.DATE_TIME }}
DATE_TIME: ${{ steps.set-date.outputs.current_datetime }}
COLOR: ${{ steps.set-color.outputs.COLOR }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit 402ed46

Please sign in to comment.