Skip to content

Commit

Permalink
github workflows token
Browse files Browse the repository at this point in the history
  • Loading branch information
cardinalby committed Feb 2, 2024
1 parent 66a1175 commit 5172c3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
functionalSelfTest:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.INTEGRATION_TEST_TOKEN }}
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Test
run: npm run test
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.INTEGRATION_TEST_TOKEN }}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ default points to a current repository.

## Env variables

You should set `GITHUB_TOKEN` env variable to enable action to access GitHub API. See example.
You should set `GITHUB_TOKEN` env variable to enable action to access GitHub API.
For some operations default `github.token` is not enough, you need to pass a personal access token.

## Outputs
Values from [API](https://docs.github.com/en/rest/reference/repos#releases) response object:
Expand Down Expand Up @@ -98,15 +99,15 @@ Values from [API](https://docs.github.com/en/rest/reference/repos#releases) resp
```yaml
- uses: cardinalby/git-get-release-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }} # or your personal access token
with:
tag: '1.2.3'
```
```yaml
- uses: cardinalby/git-get-release-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }} # or your personal access token
with:
commitSha: e92acb19de8845ad1f3cb6cfab421ac26002d6b6
prerelease: false
Expand Down

0 comments on commit 5172c3a

Please sign in to comment.