Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
name: Compliance

on:
push:
branches:
- main
- 'support/*'
branches: [ main ]
pull_request: {}

permissions:
# https://docs.github.com/en/rest/overview/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-contents
contents: read

jobs:
licenses:
compliance:
runs-on: ubuntu-latest
steps:
- run: sudo apt install -y moreutils
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: stable

- uses: actions/setup-go@v6
with:
go-version: 1.x
- name: Download modules to local cache
run: go mod download

- uses: actions/checkout@v5
- name: Install go-licenses
run: go install github.com/google/go-licenses@latest

- run: .github/workflows/compliance/check-licenses.sh
- name: Check licenses against allow list
run: |
# Pass allowed licenses as SPDX Identifiers: https://spdx.org/licenses/
go-licenses check github.com/icinga/icingadb/... \
--allowed_licenses BSD-2-Clause,BSD-3-Clause,GPL-2.0,ISC,MIT,MPL-2.0,Unlicense
11 changes: 0 additions & 11 deletions .github/workflows/compliance/anonymize-license.pl

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/compliance/check-licenses.sh

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/compliance/ls-deps.pl

This file was deleted.

Loading