Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read

jobs:
benchmark:
name: Benchmark
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

permissions:
contents: read
Comment thread
stormslowly marked this conversation as resolved.

defaults:
run:
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

permissions:
contents: read

jobs:
coverage:
name: Code Coverage
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ on:
required: false
default: true

permissions:
# To publish packages with provenance
id-token: write
# Allow commenting on issues for `reusable-build.yml`
issues: write
permissions: {}

jobs:
build:
if: github.repository_owner == 'rstackjs'
strategy:
fail-fast: false # Build and test everything so we can look at all the errors
matrix:
Expand All @@ -65,6 +62,8 @@ jobs:
- target: aarch64-apple-darwin
runner: "macos-latest"

permissions:
contents: read
uses: ./.github/workflows/reusable-build.yml
with:
target: ${{ matrix.array.target }}
Expand All @@ -75,10 +74,12 @@ jobs:

release:
name: Release
if: github.repository_owner == 'rstackjs'
environment: npm
permissions:
# push release tag via scripts/x.mjs publish --push-tags
contents: write
# To publish packages with provenance
# OIDC provenance for npm publish
id-token: write
runs-on: ubuntu-latest
needs: build
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ on:
required: false
default: false

permissions:
# trust publish needs
id-token: write
# push tag
contents: write
permissions: {}

jobs:
release-plz:
name: Release-plz
if: github.repository_owner == 'rstackjs'
runs-on: ubuntu-latest
environment: crate
permissions:
# OIDC trusted publishing to crates.io
id-token: write
# push release tag
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ env:
CARGO_INCREMENTAL: 0

permissions:
# Allow commenting on issues
issues: write
contents: read

jobs:
build:
Expand Down
Loading