Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 35d99c0

Browse files
committed
ci: use github token by default
Set `${{ github.token }}` as the default value for `github_token` input. This is the common practice, examples: * https://github.com/actions/checkout/blob/main/action.yml#L24 * astral-sh/setup-uv#61
1 parent a49cac8 commit 35d99c0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@ jobs:
5252
uses: actions/checkout@v3
5353
with:
5454
fetch-depth: 0
55-
token: "${{ secrets.GITHUB_TOKEN }}"
5655
- id: cz
5756
name: Create bump and changelog
5857
uses: commitizen-tools/commitizen-action@master
59-
with:
60-
github_token: ${{ secrets.GITHUB_TOKEN }}
6158
- name: Print Version
6259
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
6360
```
@@ -66,7 +63,7 @@ jobs:
6663
6764
| Name | Description | Default |
6865
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
69-
| `github_token` | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. Required if `push: true` | - |
66+
| `github_token` | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`if your want to use a custom PAT | `${{ github.token }}` |
7067
| `working_directory` | Change to this directory before running | repo root directory |
7168
| `dry_run` | Run without creating commit, output to stdout | false |
7269
| `repository` | Repository name to push. Default or empty value represents current github repository | current one |

‎action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ inputs:
4747
github_token:
4848
description: 'Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}'
4949
required: false
50+
default: ${{ github.token }}
5051
repository:
5152
description: "Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY})"
5253
default: ""

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /