Skip to content

chore: test vanilla cargo audit command #5

chore: test vanilla cargo audit command

chore: test vanilla cargo audit command #5

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
run: |
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 }}