Skip to content

Executing automated changes (#177) #225

Executing automated changes (#177)

Executing automated changes (#177) #225

Workflow file for this run

name: Validate Licenses
on:
push:
branches: [main]
tags:
- 'v*'
pull_request:
release:
types: [created]
permissions:
contents: read
packages: read
jobs:
validate-licenses:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.11.12'
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v5.0.0
with:
node-version: '20'
cache: 'yarn'
- name: Set up Golang
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # 6.2.0
with:
go-version: '1.23'
- name: Clone dd-license-attribution
run: |
git clone https://github.com/DataDog/dd-license-attribution.git /tmp/dd-license-attribution
- name: Install dd-license-attribution
run: |
python -m pip install --upgrade pip
python -m pip install /tmp/dd-license-attribution
- name: Install project dependencies
run: yarn install --frozen-lockfile
- name: Validate licenses
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./scripts/licenses-validate.sh