fix: only read one line from the github webhook secret file #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify License | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main", "release-*"] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
license-check: | |
name: license boilerplate check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: "1.21.x" | |
- name: Install addlicense | |
run: go install github.com/google/addlicense@v1.1.1 | |
- name: Check license headers | |
run: | | |
set -e | |
addlicense --check -l apache -c 'The Witness Contributors' --ignore "chart/**" -v * |