Skip to content

Merge pull request #7181 from kubernetes-sigs/dependabot/go_modules/r… #3819

Merge pull request #7181 from kubernetes-sigs/dependabot/go_modules/r…

Merge pull request #7181 from kubernetes-sigs/dependabot/go_modules/r… #3819

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "Update vendor licenses"
on:
workflow_dispatch:
push:
branches: [ master, 'release-**' ]
paths:
- 'go.*'
schedule:
- cron: '0 */4 * * *'
permissions:
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set up Go 1.x
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '>=1.20'
check-latest: true
id: go
- name: Autobuild
run: |
make update
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
branch: doc/update-vendorlicense-${{github.ref_name}}
delete-branch: true
labels: |
lgtm
approved
commit-message: Update vendor license for ${{github.ref_name}}
body: |
Auto-generated by GitHub Action [Update vendor licenses](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})
#### What type of PR is this?
/kind testing
#### What this PR does / why we need it:
go.sum is out of sync
#### Does this PR introduce a user-facing change?
```release-note
None
```