Skip to content

Commit

Permalink
ci: using [] in os environ 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoofi-A-Appiah committed Jun 11, 2024
1 parent da05d72 commit 3fb6e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: Slack Notification
run: |
pip3 install slack_sdk
echo "SLACK_TOKEN=${{ secrets.SLACK_TOKEN }}" >> $GITHUB_ENV
python3 ${{ github.workspace }}/slackmessenger.py
- name: Cleanup
Expand Down
2 changes: 1 addition & 1 deletion slackmessenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
)
file_url = new_file.get("file").get("permalink")
new_message = client.chat_postMessage(
channel=os.environ["SLACK_CHANNEL_ID"],
channel="C076CEFAXJ5",
text=f"Here is the file: {file_url}",
)
print("File uploaded and message sent successfully!")
Expand Down

0 comments on commit 3fb6e91

Please sign in to comment.