Skip to content

Commit

Permalink
Merge pull request #63 from Terre8055/anotherdevelop
Browse files Browse the repository at this point in the history
ci: using [] in os environ 3
  • Loading branch information
Yoofi-A-Appiah authored Jun 11, 2024
2 parents 888b524 + dad603f commit a59d00e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ permissions:
id-token: write
contents: read

env:
GIT_SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
jobs:
scan:
name: AWS Scan
Expand All @@ -24,7 +26,9 @@ jobs:
uses: actions/checkout@v3

- name: Set up date environment variable
run: echo "TIMESTAMP=$(date +%Y%m%d)" >> $GITHUB_ENV
run: |
echo "TIMESTAMP=$(date +%Y%m%d)" >> $GITHUB_ENV
echo "SLACK_TOKEN=${GIT_SLACK_TOKEN}" >> $GITHUB_ENV
- name: Install Trivy
run: |
Expand Down Expand Up @@ -57,7 +61,8 @@ jobs:
- name: Slack Notification
run: |
pip3 install slack_sdk
echo "SLACK_TOKEN=${{ secrets.SLACK_TOKEN }}" >> $GITHUB_ENV
echo "TIMESTAMP=$(date +%Y%m%d)" >> $GITHUB_ENV
python3 ${{ github.workspace }}/slackmessenger.py
Expand Down

0 comments on commit a59d00e

Please sign in to comment.