Skip to content

Merge pull request #71 from telus-agcg/feature/NAUM-104-ditch-actions… #45

Merge pull request #71 from telus-agcg/feature/NAUM-104-ditch-actions…

Merge pull request #71 from telus-agcg/feature/NAUM-104-ditch-actions… #45

---
name: Security audit
on:
push:
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
- ".github/workflows/security-audit.yml"
workflow_dispatch:
inputs:
tags:
required: false
description: "Security audit"
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_AGRIAN_REGISTRY_INDEX: ${{ secrets.AGRIAN_CRATES_REGISTRY }}
jobs:
security-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.TELUS_AGCG_MACHINE_USER_KEY }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Security audit
uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}