@@ -24,14 +24,14 @@ jobs:
24
24
id : dependabot-metadata
25
25
uses :
dependabot/[email protected]
26
26
with :
27
- github-token : " ${{ secrets.GITHUB_TOKEN }}"
28
27
alert-lookup : true
29
28
` ` `
30
29
31
30
Supported inputs are:
32
31
33
- - ` github-token` (REQUIRED string)
32
+ - ` github-token` (string)
34
33
- The `GITHUB_TOKEN` secret
34
+ - Defaults to `${{ github.token }}`
35
35
- ` alert-lookup` (boolean)
36
36
- If `true`, then call populate the `alert-state`, `ghsa-id` and `cvss` outputs.
37
37
- Defaults to `false`
88
88
- name: Dependabot metadata
89
89
id: dependabot-metadata
90
90
uses: dependabot/[email protected]
91
- with:
92
- github-token: "${{ secrets.GITHUB_TOKEN }}"
93
91
- name: Approve a PR
94
92
run: gh pr review --approve "$PR_URL"
95
93
env:
@@ -118,8 +116,6 @@ jobs:
118
116
- name: Dependabot metadata
119
117
id: dependabot-metadata
120
118
uses: dependabot/[email protected]
121
- with:
122
- github-token: "${{ secrets.GITHUB_TOKEN }}"
123
119
- name: Enable auto-merge for Dependabot PRs
124
120
if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'rails') && steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
125
121
run: gh pr merge --auto --merge "$PR_URL"
@@ -149,8 +145,6 @@ jobs:
149
145
- name: Dependabot metadata
150
146
id: dependabot-metadata
151
147
uses: dependabot/[email protected]
152
- with:
153
- github-token: "${{ secrets.GITHUB_TOKEN }}"
154
148
- name: Add a label for all production dependencies
155
149
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:production' }}
156
150
run: gh pr edit "$PR_URL" --add-label "production"
0 commit comments