Skip to content

Commit 4230258

Browse files
author
Andrew Luca
committed
Update dependabot metadata field
As of the last docs the metadata field is named `dependabot-metadata` https://github.com/dependabot/fetch-metadata
1 parent 2fa1bf8 commit 4230258

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

content/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ jobs:
184184
with:
185185
github-token: "${{ secrets.GITHUB_TOKEN }}"
186186
# The following properties are now available:
187-
# - steps.metadata.outputs.dependency-names
188-
# - steps.metadata.outputs.dependency-type
189-
# - steps.metadata.outputs.update-type
187+
# - steps.dependabot-metadata.outputs.dependency-names
188+
# - steps.dependabot-metadata.outputs.dependency-type
189+
# - steps.dependabot-metadata.outputs.update-type
190190
```
191191
{% endraw %}
192192

@@ -219,7 +219,7 @@ jobs:
219219
with:
220220
github-token: "${{ secrets.GITHUB_TOKEN }}"
221221
- name: Add a label for all production dependencies
222-
if: ${{ steps.metadata.outputs.dependency-type == 'direct:production' }}
222+
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:production' }}
223223
run: gh pr edit "$PR_URL" --add-label "production"
224224
env:
225225
PR_URL: ${{github.event.pull_request.html_url}}
@@ -282,7 +282,7 @@ jobs:
282282
with:
283283
github-token: "${{ secrets.GITHUB_TOKEN }}"
284284
- name: Enable auto-merge for Dependabot PRs
285-
if: ${{contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
285+
if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'my-dependency') && steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
286286
run: gh pr merge --auto --merge "$PR_URL"
287287
env:
288288
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)