Skip to content

Commit

Permalink
Adds permissions lines to workflow samples
Browse files Browse the repository at this point in the history
Since Jan 2nd, 2023 this is required (or changing default workflow perms in repo settings). Reference: https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
  • Loading branch information
fabriciomurta committed Feb 21, 2023
1 parent 72931bc commit 9dfadc2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -193,6 +196,9 @@ jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -280,6 +286,8 @@ on:
jobs:
job1:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -313,6 +321,8 @@ jobs:
publish:
name: Assemble and publish docs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
Expand All @@ -336,4 +346,4 @@ jobs:
- Retype's [action-build](https://github.com/retypeapp/action-build)
- Retype's [action-github-pages](https://github.com/retypeapp/action-github-pages)
- [GitHub Actions documentation](https://docs.github.com/en/actions)
- [The git-ftp website](https://git-ftp.github.io/)
- [The git-ftp website](https://git-ftp.github.io/)

0 comments on commit 9dfadc2

Please sign in to comment.