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
With cli/cli lint process erring if 3rd party license information is not updated in #11047, Dependabot PRs will require maintainers to manually run make licenses.
name: Dependabot fetch metadataon: pull_requestpermissions:
pull-requests: writeissues: writejobs:
dependabot:
runs-on: ubuntu-latestif: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo'steps:
- name: Dependabot metadataid: metadatauses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7with:
github-token: "${{ secrets.GITHUB_TOKEN }}"# The following properties are now available:# - steps.metadata.outputs.dependency-names# - steps.metadata.outputs.dependency-type# - steps.metadata.outputs.update-type
This issue is aimed at implementing GitHub Actions workflow changes that will automatically update third-party license source code and third-party-*.md reports, eliminating the need for maintainers to manually repair Dependabot PRs.
Note
To download the script/fix-dependabot-licenses.sh script, run the following command:
Overview
With
cli/clilint process erring if 3rd party license information is not updated in #11047, Dependabot PRs will require maintainers to manually runmake licenses.Recently, @williammartin opened #11269 with the
script/fix-dependabot-licenses.shscript for maintainers to run that will find all Dependabot PRs and attempt to fix them where the lint workflow failed. This script is a manual repair effort, however it is possible to use a GitHub Actions workflow to run themake licensescript for Dependabot PRs:This issue is aimed at implementing GitHub Actions workflow changes that will automatically update
third-partylicense source code andthird-party-*.mdreports, eliminating the need for maintainers to manually repair Dependabot PRs.Note
To download the
script/fix-dependabot-licenses.shscript, run the following command:Or checkout the original PR:
Expected outcomes
make licenses