Skip to content

Commit

Permalink
fix: inherit secrets
Browse files Browse the repository at this point in the history
https: //github.com/actions/runner/issues/1413#issuecomment-1197936320
Signed-off-by: Vinayak Kulkarni <[email protected]>
  • Loading branch information
breakchallenge committed Feb 23, 2023
1 parent e4086c8 commit 9f20b4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/automerger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
id: dependabot_metadata
uses: dependabot/[email protected]
with:
alert-lookup: true
github-token: ${{ secrets.DEPENDABOT_TOKEN }}

- name: Authenticate CLI with PAT 🔐
run: echo "${{ secrets.DEPENDABOT_TOKEN }}" | gh auth login --with-token
run: echo ${{ secrets.DEPENDABOT_TOKEN }} | gh auth login --with-token

- name: Enable auto-merge for Dependabot PRs 🕺
if: steps.dependabot_metadata.outputs.dependency-type == 'direct:development' && (steps.dependabot_metadata.outputs.update-type == 'version-update:semver-minor' || steps.dependabot_metadata.outputs.update-type == 'version-update:semver-patch')
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
- ci
if: github.event.pull_request.user.login == 'dependabot[bot]'
uses: vinayakkulkarni/v-kong-dashboard/.github/workflows/automerger.yml@main
secrets:
DEPENDABOT_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}
secrets: inherit
builder:
name: 'Builder'
needs:
Expand Down

0 comments on commit 9f20b4b

Please sign in to comment.