Skip to content

Commit

Permalink
Merge pull request #4172 from MartinForReal/shafan/updatelicense
Browse files Browse the repository at this point in the history
chores: add vendor update job
  • Loading branch information
k8s-ci-robot authored Jun 27, 2023
2 parents dc2a084 + 6ec8c2f commit 86fbb68
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
run: |
hack/verify-updates.sh
make all
go test -covermode=count -coverprofile=profile.cov ./pkg/...
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/update-vendor-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 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@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Go 1.x
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
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@v5
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:
New release published.
#### Does this PR introduce a user-facing change?
```release-note
None
```

0 comments on commit 86fbb68

Please sign in to comment.