mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-27 10:24:57 +00:00
Bumps golang to 1.26.7 and paketobuildpacks/run-jammy-tiny to 0.2.165 to resolve OS and Go vulnerabilities reported by trivy image scan. Bump golangci-lint that supports Golang 1.26. Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
33 lines
786 B
YAML
33 lines
786 B
YAML
name: Pull Request Linter Check
|
|
on:
|
|
pull_request:
|
|
# Do not run when the change only includes these directories.
|
|
paths-ignore:
|
|
- "site/**"
|
|
- "design/**"
|
|
- "**/*.md"
|
|
jobs:
|
|
get-go-version:
|
|
uses: ./.github/workflows/get-go-version.yaml
|
|
with:
|
|
ref: ${{ github.event.pull_request.base.ref }}
|
|
|
|
build:
|
|
name: Run Linter Check
|
|
runs-on: ubuntu-latest
|
|
needs: get-go-version
|
|
steps:
|
|
- name: Check out the code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Go version
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ needs.get-go-version.outputs.version }}
|
|
|
|
- name: Linter check
|
|
uses: golangci/golangci-lint-action@v9
|
|
with:
|
|
version: v2.13.1
|
|
args: --verbose
|