You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that this action fails when Dependabot creates a single PR for multiple updates. It is possible though to combine this with a helper-action from Dependabot to fetch the update metadata in a standardized format, making a lot of parsing here unnecessary:
# ...
- name: Dependabot metadataid: dependabot-metadatauses: dependabot/fetch-metadata@v1with:
github-token: ${{ secrets.PAT }} # This must be a personal access token to fetch if a PR closes a security issue
which can then be parsed using JSON.parse and contains something like this:
[{dependencyName: 'prettier',dependencyType: 'direct:development',updateType: 'version-update:semver-patch',directory: '/prettier-and-types',packageEcosystem: 'npm_and_yarn',targetBranch: 'master',prevVersion: '',newVersion: '',compatScore: 0,alertState: '',ghsaId: '',cvss: 0},{dependencyName: '@types/prettier',dependencyType: 'direct:development',updateType: 'version-update:semver-patch',directory: '/',packageEcosystem: 'npm_and_yarn',targetBranch: 'master',prevVersion: '',newVersion: '',compatScore: 0,alertState: '',// <-- THIS will be "OPEN" if there is an open security issueghsaId: '',cvss: 0}]
The text was updated successfully, but these errors were encountered:
Would love to see this enhancement as well. This is made especially important by the grouped version updates feature that was just released as a public beta for Dependabot.
@ahmadnassri Apologies for tagging you, but I'm curious on how this re-write is going? I have a lot more of my Dependabot updates grouped these days, so this feature would definitely be appreciated. Thanks for all your work on this action!
I've noticed that this action fails when Dependabot creates a single PR for multiple updates. It is possible though to combine this with a helper-action from Dependabot to fetch the update metadata in a standardized format, making a lot of parsing here unnecessary:
The result can then be passed to this action:
which can then be parsed using
JSON.parse
and contains something like this:The text was updated successfully, but these errors were encountered: