Check if the tool is _NOT_ read only before skipping it in read-only … #4676
Workflow file for this run
This file contains hidden or 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
| # Create a github action that runs the license check script and fails if it exits with a non-zero status | |
| name: License Check | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| license-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: check licenses | |
| run: ./script/licenses-check |