diff --git a/.github/actions/contributors-json/action.yaml b/.github/actions/contributors-json/action.yaml index 223b8793..fb4ca858 100644 --- a/.github/actions/contributors-json/action.yaml +++ b/.github/actions/contributors-json/action.yaml @@ -1,7 +1,7 @@ name: 'Contributors JSON' description: 'Generates JSON with contributors per repository' inputs: - PRIVATE_TOKEN: + TOKEN: description: "GitHub token to authenticate requests" required: true runs: diff --git a/.github/actions/contributors-json/index.js b/.github/actions/contributors-json/index.js index 7d64aa2d..4447b29d 100644 --- a/.github/actions/contributors-json/index.js +++ b/.github/actions/contributors-json/index.js @@ -4,7 +4,7 @@ const { HttpClient } = require('@actions/http-client'); const { URLSearchParams } = require('url'); const doGet = async (url) => { - const token = core.getInput("PRIVATE_TOKEN"); + const token = core.getInput("TOKEN"); if (!token) { console.warn("NO TOKEN CONFIGURED"); } diff --git a/.github/workflows/contributors-json.yaml b/.github/workflows/contributors-json.yaml index 0fc6f0b0..adecb7c1 100644 --- a/.github/workflows/contributors-json.yaml +++ b/.github/workflows/contributors-json.yaml @@ -16,7 +16,7 @@ jobs: - run: yarn add @actions/core @actions/http-client - uses: ./.github/actions/contributors-json with: - PRIVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TOKEN: ${{ secrets.TOKEN }} - uses: actions/upload-artifact@v3 with: name: contributors-json