Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
jobs:
audit:
runs-on: ubuntu-latest
permissions:
# rustsec/audit-check reports advisories as a check run on push/PR and
# opens issues on the scheduled run.
checks: write
contents: read
issues: write
# cargo-audit's dependency tree can require a newer rustc than this repo's
# pinned rust-toolchain.toml (used to build the actual crate). Override
# with the runner's default stable toolchain just for this job so
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
check:
name: Check
Expand Down Expand Up @@ -55,6 +58,8 @@ jobs:

release:
runs-on: macos-latest
permissions:
contents: write
needs:
- test
- lints
Expand Down Expand Up @@ -101,6 +106,8 @@ jobs:
upload-mac-universal-bin:
needs: release
runs-on: macos-latest
permissions:
contents: write
if: ${{needs.release.outputs.new_version}}
steps:
- uses: actions/checkout@v4
Expand All @@ -126,6 +133,8 @@ jobs:
needs: release
if: ${{needs.release.outputs.new_version}}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Update local toolchain
Expand Down Expand Up @@ -153,6 +162,8 @@ jobs:
- upload-mac-universal-bin
if: success() && ${{needs.release.outputs.new_version}}
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: facebook/dotslash-publish-release@v1
Expand Down
Loading