Bump chainguard/rust from 7621e7a
to fc5f692
#223
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
name: rsd CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_VERSION: 1.78.0 | |
permissions: | |
contents: read | |
jobs: | |
rust-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
azure.archive.ubuntu.com:80 | |
esm.ubuntu.com:443 | |
github.com:443 | |
motd.ubuntu.com:443 | |
packages.microsoft.com:443 | |
sh.rustup.rs:443 | |
static.rust-lang.org:443 | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- run: | | |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=${{ env.RUST_VERSION }} -y | |
export PATH="$HOME/.cargo/bin:$PATH" | |
rustup default stable | |
rustup component add rustfmt | |
- name: Run Checks | |
run: | | |
cargo fmt --all -- --check | |
cargo build --all --release |