Skip to content

fix: use continue-on-error instead of true #9

fix: use continue-on-error instead of true

fix: use continue-on-error instead of true #9

Workflow file for this run

name: Cargo security audit
#on:
# schedule:
# - cron: '0 0 * * 0'
on:
push:
paths:
- '**.yaml'
branches:
- fix/outdated-dependencies
jobs:
audit:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust environment
uses: actions-rs/toolchain@v1
with:
toolchain: '1.73.0'
override: true
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run cargo audit
id: cargo-audit
continue-on-error: true
run: |
AUDIT_OUTPUT=$(cargo audit)
echo $AUDIT_OUTPUT
echo "results=$AUDIT_OUTPUT" >> GITHUB_OUTPUT
# 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:${{ steps.cargo-audit.outputs.results }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}