Skip to content

Commit

Permalink
chore: test vanilla cargo audit command
Browse files Browse the repository at this point in the history
  • Loading branch information
maancham committed Mar 6, 2024
1 parent e534b6e commit 9eab08d
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/periodic-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
- name: Run cargo audit
id: cargo-audit
run: |
AUDIT_OUTPUT=$(cargo audit)
echo "trimmed_results=$AUDIT_OUTPUT" >> GITHUB_OUTPUT
- name: Post to Slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: 'C06N3BKMA5A'
slack-message: "Cargo Audit Results for: $(date '+%Y-%m-%d')\n${{ steps.cargo-audit.outputs.trimmed_results }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
cargo audit
# audit_output=$(cargo audit)
# echo "trimmed_results=audit_output" >> GITHUB_OUTPUT

# - name: Post to Slack channel
# id: slack
# uses: slackapi/[email protected]
# with:
# channel-id: 'C06N3BKMA5A'
# slack-message: "Cargo Audit Results for: $(date '+%Y-%m-%d')\n${{ steps.cargo-audit.outputs.trimmed_results }}"
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 9eab08d

Please sign in to comment.