Skip to content

Commit

Permalink
workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuball committed Dec 24, 2024
1 parent a946088 commit 7c2ceac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 4 additions & 1 deletion cells/repository/configs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ in
jobs.deploy = {
runs-on = "ubuntu-latest";
concurrency.group = "\${{ github.workflow }}-\${{ github.ref }}";
permissions.contents = "write";
permissions = {
id-token = "write";
pages = "write";
};
steps = [
{ uses = "actions/checkout@v4"; }
{ uses = "nixbuild/nix-quick-install-action@v29"; }
Expand Down

0 comments on commit 7c2ceac

Please sign in to comment.