From 223a12dddf34fbb4dce7092704527b464638d907 Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Mon, 23 Aug 2021 09:39:02 -0700 Subject: [PATCH] Default github-token --- .github/workflows/dependabot-auto-merge.yml | 2 -- README.md | 8 -------- action.yml | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 3ed4df5d..2c81b864 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -14,8 +14,6 @@ jobs: - name: Fetch metadata id: metadata uses: ./ - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Auto-merge run: gh pr merge --auto --merge "$PR_URL" diff --git a/README.md b/README.md index f2cee63e..070304cd 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,6 @@ jobs: - name: Fetch Dependabot metadata id: dependabot-metadata uses: dependabot/fetch-metadata@v1.1.1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" ``` Subsequent actions will have access to the following outputs: @@ -63,8 +61,6 @@ jobs: - name: Dependabot metadata id: dependabot-metadata uses: dependabot/fetch-metadata@v1.1.1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Approve a PR run: gh pr review --approve "$PR_URL" env: @@ -93,8 +89,6 @@ jobs: - name: Dependabot metadata id: dependabot-metadata uses: dependabot/fetch-metadata@v1.1.1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Enable auto-merge for Dependabot PRs if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'rails') && steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}} run: gh pr merge --auto --merge "$PR_URL" @@ -124,8 +118,6 @@ jobs: - name: Dependabot metadata id: dependabot-metadata uses: dependabot/fetch-metadata@v1.1.1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Add a label for all production dependencies if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:production' }} run: gh pr edit "$PR_URL" --add-label "production" diff --git a/action.yml b/action.yml index f0b0190d..d9b3eaed 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,7 @@ branding: inputs: github-token: description: 'The GITHUB_TOKEN secret' - required: true + default: ${{ github.token }} outputs: dependency-names: description: 'A comma-separated list of all package names updated.'