Skip to content

Commit

Permalink
Use dependabot github token (#12562)
Browse files Browse the repository at this point in the history
* Use dependabot github token

* Fix typo
  • Loading branch information
reakaleek authored Feb 5, 2024
1 parent 6c75ab4 commit 59b4cef
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/update-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 59b4cef

Please sign in to comment.