.github/actions: add signoff to go-licenses commits

also set git committer, which is apparently what this action uses for
signoff rather than git author.  Remove branch-suffix, which isn't
proving useful, and add installation_id, which isn't technically
necessary in the tailscale/tailscale repo, but makes this consistent
with the workflows in other repos.

Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
Will Norris 2022-08-26 16:12:29 -07:00 committed by Will Norris
parent d95b95038c
commit 3d328b82ee

View File

@ -46,6 +46,7 @@ jobs:
id: generate-token id: generate-token
with: with:
app_id: ${{ secrets.LICENSING_APP_ID }} app_id: ${{ secrets.LICENSING_APP_ID }}
installation_id: ${{ secrets.LICENSING_APP_INSTALLATION_ID }}
private_key: ${{ secrets.LICENSING_APP_PRIVATE_KEY }} private_key: ${{ secrets.LICENSING_APP_PRIVATE_KEY }}
- name: Send pull request - name: Send pull request
@ -53,10 +54,11 @@ jobs:
with: with:
token: ${{ steps.generate-token.outputs.token }} token: ${{ steps.generate-token.outputs.token }}
author: License Updater <noreply@tailscale.com> author: License Updater <noreply@tailscale.com>
committer: License Updater <noreply@tailscale.com>
branch: licenses/cli branch: licenses/cli
branch-suffix: short-commit-hash
commit-message: "licenses: update tailscale{,d} licenses" commit-message: "licenses: update tailscale{,d} licenses"
title: "licenses: update tailscale{,d} licenses" title: "licenses: update tailscale{,d} licenses"
body: Triggered by ${{ github.repository }}@${{ github.sha }} body: Triggered by ${{ github.repository }}@${{ github.sha }}
signoff: true
delete-branch: true delete-branch: true
team-reviewers: opensource-license-reviewers team-reviewers: opensource-license-reviewers