From 0dc2a51ddf3cf93414afd674ed3c34ec681f3e4b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 May 2022 16:22:16 +0200 Subject: [PATCH] feat: removes github-token need --- README.md | 15 +++++++-------- action.yml | 3 --- src/git.ts | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7c9c38f..bfbe1f9 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,13 @@ You can see an example of the output at my own [simonecorsi/awesome](https://git The service can be configured setting the appropriate environment variables or writing an `.env` file. -| Variable | Description | Default | -| ----------------- | -------------------------------------------------------- | -------------------------------- | -| `api-token` | Personal github api token. | `${{ secrets.API_TOKEN }}` | -| `github-token` | This is the default github token used to commit and push | `${{ secrets.GITHUB_TOKEN }}` | -| `github-name` | Name used for the commit | Github Action | -| `github-email` | email used for commit | actions@users.noreply.github.com | -| `template-path` | Custom `README.md` template, [read more](#template-path) | -| `output-filename` | Output filename | `README.md` | +| Variable | Description | Default | +| ----------------- | ------------------------------------------------------------------- | -------------------------------- | +| `api-token` | Personal Token is used to avoid rate limit, [read more](#api-token) | `${{ secrets.API_TOKEN }}` | +| `github-name` | Name used for the commit | Github Action | +| `github-email` | email used for commit | actions@users.noreply.github.com | +| `template-path` | Custom `README.md` template, [read more](#template-path) | +| `output-filename` | Output filename | `README.md` | #### `api-token` diff --git a/action.yml b/action.yml index a19ae7a..aa41ec0 100644 --- a/action.yml +++ b/action.yml @@ -4,9 +4,6 @@ branding: icon: align-justify color: yellow inputs: - github-token: - description: 'Github token' - required: true api-token: description: 'Personal API Token' required: true diff --git a/src/git.ts b/src/git.ts index 7d1cbe7..08d0c40 100644 --- a/src/git.ts +++ b/src/git.ts @@ -15,7 +15,7 @@ type File = { class Git { constructor() { - const githubToken = core.getInput('github-token', { required: true }); + const githubToken = core.getInput('api-token', { required: true }); core.setSecret(githubToken); const githubName = core.getInput('github-name') || 'GitHub Actions';