Skip to content

Commit 5859b4e

Browse files
authored
Merge pull request #200 from crazy-max/update-readme
readme: set workflow permissions
2 parents 154b0f8 + 9ba2f30 commit 5859b4e

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

README.md

+23-20
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ name: website
3636

3737
on: push
3838

39+
permissions:
40+
contents: write
41+
3942
jobs:
4043
publish:
4144
runs-on: ubuntu-latest
@@ -122,31 +125,31 @@ check availability of GitHub Pages before deploying:
122125
123126
Following inputs can be used as `step.with` keys
124127

125-
| Name | Type | Description |
126-
|----------------------|---------|--------------------------------------------------------------------------------|
127-
| `domain` | String | Git domain (default `github.com`) |
128-
| `repo` | String | GitHub repository where assets will be deployed (default `$GITHUB_REPOSITORY`) |
129-
| `target_branch` | String | Git branch where assets will be deployed (default `gh-pages`) |
130-
| `keep_history` | Bool | Create incremental commit instead of doing push force (default `false`) |
131-
| `allow_empty_commit` | Bool | Allow an empty commit to be created (default `true`) |
132-
| `build_dir` | String | Build directory to deploy (**required**) |
133-
| `absolute_build_dir` | Bool | Whether to treat `build_dir` as an absolute path (defaults to `false`, making it relative to the working directory) |
134-
| `follow_symlinks` | Bool | If enabled, the content of symbolic links will be copied (default `false`) |
135-
| `committer` | String | Committer name and email address as `Display Name <[email protected]>` (defaults to the GitHub Actions bot user) |
136-
| `author` | String | Author name and email address as `Display Name <[email protected]>` (defaults to the GitHub Actions bot user) |
137-
| `commit_message` | String | Commit message (default `Deploy to GitHub pages`) |
138-
| `fqdn` | String | Write the given domain name to the CNAME file |
139-
| `jekyll` | Bool | Allow Jekyll to build your site (default `true`) |
140-
| `dry_run` | Bool | If enabled, nothing will be pushed (default `false`) |
141-
| `verbose` | Bool | Enable verbose output (default `false`) |
128+
| Name | Type | Description |
129+
|----------------------|--------|---------------------------------------------------------------------------------------------------------------------|
130+
| `domain` | String | Git domain (default `github.com`) |
131+
| `repo` | String | GitHub repository where assets will be deployed (default `$GITHUB_REPOSITORY`) |
132+
| `target_branch` | String | Git branch where assets will be deployed (default `gh-pages`) |
133+
| `keep_history` | Bool | Create incremental commit instead of doing push force (default `false`) |
134+
| `allow_empty_commit` | Bool | Allow an empty commit to be created (default `true`) |
135+
| `build_dir` | String | Build directory to deploy (**required**) |
136+
| `absolute_build_dir` | Bool | Whether to treat `build_dir` as an absolute path (defaults to `false`, making it relative to the working directory) |
137+
| `follow_symlinks` | Bool | If enabled, the content of symbolic links will be copied (default `false`) |
138+
| `committer` | String | Committer name and email address as `Display Name <[email protected]>` (defaults to the GitHub Actions bot user) |
139+
| `author` | String | Author name and email address as `Display Name <[email protected]>` (defaults to the GitHub Actions bot user) |
140+
| `commit_message` | String | Commit message (default `Deploy to GitHub pages`) |
141+
| `fqdn` | String | Write the given domain name to the CNAME file |
142+
| `jekyll` | Bool | Allow Jekyll to build your site (default `true`) |
143+
| `dry_run` | Bool | If enabled, nothing will be pushed (default `false`) |
144+
| `verbose` | Bool | Enable verbose output (default `false`) |
142145

143146
### environment variables
144147

145148
Following environment variables can be used as `step.env` keys
146149

147-
| Name | Description |
148-
|----------------|---------------------------------------|
149-
| `GITHUB_TOKEN` | [GITHUB_TOKEN](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) as provided by `secrets` |
150+
| Name | Description |
151+
|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
152+
| `GITHUB_TOKEN` | [GITHUB_TOKEN](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) as provided by `secrets` |
150153
| `GH_PAT` | Use a [Personal Access Token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) if you want to deploy to another repo |
151154

152155
## Contributing

0 commit comments

Comments
 (0)