Skip to content

Commit

Permalink
Update the sample in README.md with explicit permission control. (#31)
Browse files Browse the repository at this point in the history
* Update the sample in README.md with explicit permission control.

By adding the explict permission declaration, user can deploy the
HTML document with default workflow permission of their repository.

    permissions:
      contents: write
      pages: write

* Removed unneccesary permissions:pages: control.
  • Loading branch information
suikan4github authored Sep 26, 2024
1 parent a30f953 commit a5ce84b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: DenverCoder1/[email protected]
with:
Expand Down Expand Up @@ -48,6 +50,8 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: DenverCoder1/[email protected]
with:
Expand Down

0 comments on commit a5ce84b

Please sign in to comment.