Skip to content

Commit 3eac1d8

Browse files
Merge pull request #253 from nearform/chore/make-github-token-optional
chore: Make Github token optional
2 parents b52a6b7 + 1056186 commit 3eac1d8

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

.github/workflows/check-linked-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
steps:
1212
- uses: nearform/github-action-check-linked-issues@v1
1313
with:
14-
github-token: ${{ secrets.GITHUB_TOKEN }}
14+
github-token: ${{ github.token }}
1515
exclude-branches: 'release/**, dependabot/**'

.github/workflows/notify-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ jobs:
1313
id: notify
1414
uses: nearform/github-action-notify-release@main
1515
with:
16-
github-token: ${{ secrets.GITHUB_TOKEN }}
1716
stale-days: 0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: nearform/optic-release-automation-action@v3
2828
with:
29-
github-token: ${{ secrets.github_token }}
29+
github-token: ${{ github.token }}
3030
semver: ${{ github.event.inputs.semver }}
3131
sync-semver-tags: true
3232
build-command: |

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ jobs:
1616
steps:
1717
- name: Notify release
1818
uses: nearform/github-action-notify-release@v1
19-
with:
20-
github-token: ${{ secrets.GITHUB_TOKEN }}
2119
```
2220
2321
## Usage
2422
2523
Configure this action in your workflows providing the inputs described below in order to get notified in `x` days after the repo has been updated but no release has happened.
2624

2725
### `github-token`
28-
**Required** A GitHub token. See below for additional information.
26+
**Optional** A GitHub token.
2927

3028
### `stale-days: 7`
3129
_Optional_ The number of days after which unreleased commits should be considered stale and should notify for a release. Default is `7`.

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ description: 'Create an issue if there is a release pending'
33
inputs:
44
github-token:
55
description: 'GitHub token'
6-
required: true
6+
required: false
7+
default: ${{ github.token }}
78
stale-days:
89
description: 'Number of days of inactivity before a release becomes stale'
910
required: false

0 commit comments

Comments
 (0)