Skip to content

Bump actions/checkout from 4.1.7 to 4.2.2 #283

Bump actions/checkout from 4.1.7 to 4.2.2

Bump actions/checkout from 4.1.7 to 4.2.2 #283

Workflow file for this run

# Copyright 2022 Yahoo Inc.
# Licensed under the terms of the Apache License 2.0. Please see LICENSE file in project root for terms.
name: license check
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
license-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: 1.19.4
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install addlicense
run: go install github.com/google/addlicense@latest
- name: Check license headers
run: |
set -e
addlicense -l apache -c 'Yahoo,' -ignore "third_party/**" -v *
git diff --exit-code