From 59b4cef9759da939b2d52ca6f012b0450c418b61 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 5 Feb 2024 13:26:15 +0100 Subject: [PATCH] Use dependabot github token (#12562) * Use dependabot github token * Fix typo --- .github/workflows/update-dependabot-pr.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/update-dependabot-pr.yml b/.github/workflows/update-dependabot-pr.yml index 021ffabc5d2..0b2d64a511d 100644 --- a/.github/workflows/update-dependabot-pr.yml +++ b/.github/workflows/update-dependabot-pr.yml @@ -14,28 +14,20 @@ permissions: contents: read jobs: - update-dependbot-pr: + update-dependabot-pr: + permissions: + contents: write runs-on: ubuntu-latest steps: - - uses: elastic/apm-pipeline-library/.github/actions/github-token@current - with: - url: ${{ secrets.VAULT_ADDR }} - roleId: ${{ secrets.VAULT_ROLE_ID }} - secretId: ${{ secrets.VAULT_SECRET_ID }} - - uses: elastic/apm-pipeline-library/.github/actions/setup-git@current - with: - username: ${{ env.GIT_USER }} - email: ${{ env.GIT_EMAIL }} - token: ${{ env.GITHUB_TOKEN }} - uses: actions/checkout@v4 - with: - token: ${{ env.GITHUB_TOKEN }} - uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Update NOTICE.txt run: make notice - run: | + git config --global user.name 'dependabot[bot]' + git config --global user.email 'dependabot[bot]@users.noreply.github.com' git diff --exit-code NOTICE.txt || (git add NOTICE.txt && git commit -am "Update NOTICE.txt") git push