Skip to content

Commit

Permalink
Update ci.yml - explicit contents read permission (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Nov 21, 2024
2 parents cb062f0 + 6bfb47c commit 5da4be1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: CI

on:
# We run the CI checks on any pull request updates or pushes to the main branch after PR merge.
pull_request:
push:
branches:
- main

permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true

- run: |
go vet ./...
go test ./... --cover
- name: Install license check tool
run: go install github.com/google/addlicense@latest
- name: Check licenses
Expand Down

0 comments on commit 5da4be1

Please sign in to comment.