-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: order nix workflows; add cargo audit
- Loading branch information
Showing
5 changed files
with
123 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Security audit | ||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
push: | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
pull_request: | ||
branches: ["master"] | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
|
||
jobs: | ||
audit: | ||
name: Security Audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install cargo-deny | ||
uses: taiki-e/install-action@cargo-deny | ||
|
||
- name: Scan for vulnerabilities | ||
run: cargo deny check advisories |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build Cargo Workspace | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: ["master"] | ||
push: | ||
branches: | ||
- "*" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
name: Build Cargo Workspace | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
name: Cache dependencies | ||
|
||
- uses: actions-rs/cargo@v1 | ||
name: Build crate | ||
with: | ||
command: build | ||
args: --verbose --all-features |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Update repository dependencies" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 4 1 * *" | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@main | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Bump nix | ||
run: nix flake update | ||
|
||
- name: Install dependencies | ||
run: nix profile install --inputs-from . nixpkgs#cargo-bump nixpkgs#cargo | ||
|
||
- name: Bump rust | ||
run: | | ||
cargo bump patch | ||
cargo update | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: "${{ secrets.github_token }}" | ||
title: "ci: update inputs" | ||
author: GitHub <[email protected]> | ||
branch: update | ||
branch-suffix: timestamp | ||
delete-branch: true | ||
commit-message: | | ||
Update all inputs | ||
Co-authored-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> |