Skip to content

Commit 8738736

Browse files
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 (#2187)
* Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.2.0 to 2.3.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](dependabot/fetch-metadata@v2.2.0...v2.3.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Setup token correctly --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alejandro Rosas <alejandrorosasdev@gmail.com>
1 parent c956bba commit 8738736

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

.github/workflows/_build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232

33+
- uses: actions/create-github-app-token@v1
34+
id: app-token
35+
with:
36+
app-id: ${{ vars.GH_APP_ID }}
37+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
38+
3339
- name: Fetch Dependabot metadata
3440
id: dependabot-metadata
35-
uses: dependabot/fetch-metadata@v2.2.0
41+
uses: dependabot/fetch-metadata@v2.3.0
3642
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
3743
with:
38-
github-token: "${{ secrets.GITHUB_TOKEN }}"
44+
github-token: "${{ steps.app-token.outputs.token }}"
3945

4046
- name: Setup NPM
4147
run: |
@@ -44,12 +50,6 @@ jobs:
4450
nvm use
4551
npm ci
4652
47-
- uses: actions/create-github-app-token@v1
48-
id: app-token
49-
with:
50-
app-id: ${{ vars.GH_APP_ID }}
51-
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
52-
5353
- name: Danger
5454
uses: docker://ghcr.io/danger/danger-kotlin:1.2.0
5555
if: ${{ github.event_name == 'pull_request' }}

.github/workflows/pr.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,21 @@ jobs:
3030
pull-requests: write
3131
if: ${{ github.actor == 'dependabot[bot]' }}
3232
steps:
33+
- uses: actions/create-github-app-token@v1
34+
id: app-token
35+
with:
36+
app-id: ${{ vars.GH_APP_ID }}
37+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
38+
3339
- name: Fetch Dependabot metadata
3440
id: dependabot-metadata
35-
uses: dependabot/fetch-metadata@v2.2.0
41+
uses: dependabot/fetch-metadata@v2.3.0
3642
with:
37-
github-token: "${{ secrets.GITHUB_TOKEN }}"
43+
github-token: "${{ steps.app-token.outputs.token }}"
44+
3845
- name: Add bpk label
3946
if: contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-')
4047
run: gh pr edit "$PR_URL" --add-label "bpk" --remove-label "javascript"
4148
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4350
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)