Skip to content

Merge pull request #138 from gruntwork-io/dependabot/go_modules/githu… #261

Merge pull request #138 from gruntwork-io/dependabot/go_modules/githu…

Merge pull request #138 from gruntwork-io/dependabot/go_modules/githu… #261

Workflow file for this run

name: License Check
on:
push:
jobs:
license-check:
name: License Check
runs-on: ubuntu-latest
env:
MISE_PROFILE: cicd
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up mise
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
version: 2025.6.8
experimental: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache licensei
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: .licensei.cache
key: ${{ runner.os }}-licensei-${{ hashFiles('**/go.sum', '.licensei.toml') }}
restore-keys: |
${{ runner.os }}-licensei-
- name: Run License Check
id: run-license-check
run: |
set -o pipefail
{
go mod vendor
licensei cache --debug
licensei check --debug
licensei header --debug
} | tee license-check.log
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload License Check Report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: license-check-report-ubuntu
path: license-check.log