Skip to content

chore(ci): upgrade GitHub Actions to latest majors and pin to commit … #99

chore(ci): upgrade GitHub Actions to latest majors and pin to commit …

chore(ci): upgrade GitHub Actions to latest majors and pin to commit … #99

Workflow file for this run

name: Go License Validation
on:
push:
branches: [main]
paths:
- .github/workflows/ci-licenses.yaml
- build/licenses/**
- cli/go.mod
- cli/go.sum
- cli/NOTICE
- sdk/go/go.mod
- sdk/go/go.sum
- sdk/go/NOTICE
- sdk/go/stores/postgres/go.mod
- sdk/go/stores/postgres/go.sum
- sdk/go/stores/postgres/NOTICE
pull_request:
branches: [main]
paths:
- .github/workflows/ci-licenses.yaml
- build/licenses/**
- cli/go.mod
- cli/go.sum
- cli/NOTICE
- sdk/go/go.mod
- sdk/go/go.sum
- sdk/go/NOTICE
- sdk/go/stores/postgres/go.mod
- sdk/go/stores/postgres/go.sum
- sdk/go/stores/postgres/NOTICE
permissions:
contents: read
jobs:
licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: cli/go.mod
- name: Install go-licenses
run: go install github.com/google/go-licenses/v2@latest
- name: Check SDK licenses
working-directory: sdk/go
run: make check-licenses
- name: Check SDK NOTICE freshness
working-directory: sdk/go
run: make check-notice
- name: Check SDK PostgreSQL adapter licenses
working-directory: sdk/go/stores/postgres
run: make check-licenses
- name: Check SDK PostgreSQL adapter NOTICE freshness
working-directory: sdk/go/stores/postgres
run: make check-notice
- name: Check CLI licenses
working-directory: cli
run: make check-licenses
- name: Check CLI NOTICE freshness
working-directory: cli
run: make check-notice