Bump the github-actions group across 1 directory with 12 updates #1366
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 MTRNord | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Security audit | |
on: | |
push: | |
paths: | |
- "**/Cargo.toml" | |
- "**/Cargo.lock" | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
permissions: | |
contents: read | |
jobs: | |
audit: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
checks: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
artifactcache.actions.githubusercontent.com:443 | |
frsnacprodeus2file1.blob.core.windows.net:443 | |
github.com:443 | |
gitlab.com:443 | |
static.rust-lang.org:443 | |
index.crates.io:443 | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
- uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b | |
- uses: actions-rs/audit-check@35b7b53b1e25b55642157ac01b4adceb5b9ebef3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
cargo-deny: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
checks: | |
- advisories | |
- bans licenses sources | |
# Prevent sudden announcement of a new advisory from failing ci: | |
continue-on-error: ${{ matrix.checks == 'advisories' }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
crates.io:443 | |
index.crates.io:443 | |
api.github.com:443 | |
github.com:443 | |
gitlab.com:443 | |
static.crates.io:443 | |
static.rust-lang.org:443 | |
index.crates.io:443 | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
- uses: EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868 | |
with: | |
command: check ${{ matrix.checks }} |