build(deps): Bump github.com/spf13/cobra from 1.8.1 to 1.9.1 #688
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TPIP Check | |
on: | |
# Trigger on pull request any Go package is changed. | |
pull_request: | |
paths: | |
- ".github/workflows/tpip-check.yml" | |
- "**/go.mod" | |
- "**/go.sum" | |
- "scripts/template/**" | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
report_name: "third_party_licenses.md" | |
permissions: | |
contents: read | |
jobs: | |
check-licenses: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Go | |
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Go tidy | |
run: go mod tidy | |
- name: Install go-licenses | |
run: go install github.com/google/go-licenses@5348b744d0983d85713295ea08a20cca1654a45e # v1.6.0 | |
- name: Generate TPIP Report | |
run: | | |
go-licenses report . --ignore github.com/Open-CMSIS-Pack/cpackget --template ../scripts/template/tpip-license.template > ../${{ env.report_name }} | |
working-directory: ./cmd | |
- name: Archive tpip report | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: tpip-report | |
path: ./${{ env.report_name }} | |
- name: Print TPIP Report | |
run: cat ${{ env.report_name }} >> $GITHUB_STEP_SUMMARY | |
- name: Check Licenses | |
run: go-licenses check . --ignore github.com/Open-CMSIS-Pack/cpackget --disallowed_types=forbidden,restricted | |
working-directory: ./cmd | |
commit-changes: | |
# Running this job only on specific event | |
# in order to have workaround for issue | |
# related to deletion of GH checks/status data | |
permissions: | |
contents: write # for peter-evans/create-pull-request to create branch | |
pull-requests: write # for peter-evans/create-pull-request to create a PR | |
if: (github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch') | |
needs: [ check-licenses ] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Restore Changes | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: tpip-report | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 | |
with: | |
commit-message: Update TPIP report | |
title: ':robot: [TPIP] Automated report updates' | |
body: | | |
Third party IP report updates | |
branch: update-tpip | |
delete-branch: true | |
labels: TPIP | |
reviewers: soumeh01 | |