Skip to content

Commit

Permalink
fix: workflows permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair committed Sep 4, 2024
1 parent bd482af commit a8445f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: "Build & Release"

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main
secrets:
CARGO_REGISTRY_TOKEN:
description: "Token to publish to crates.io"
required: true
workflow_dispatch:

jobs:
run-ci:
permissions:
checks: write
uses: ./.github/workflows/ci.yaml

release-plz:
name: Release-plz
needs: run-ci
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Lint & Test

on:
pull_request:
branches: [ main ]
branches:
- main
workflow_call:

env:
Expand Down

0 comments on commit a8445f2

Please sign in to comment.