Skip to content

Commit

Permalink
added permissions to release action job
Browse files Browse the repository at this point in the history
  • Loading branch information
saschamonteiro committed Jul 27, 2024
1 parent 74a1013 commit 1fbf714
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand All @@ -21,7 +23,7 @@ jobs:
go-version: '1.22'

- name: Build
run: go build -ldflags "-s -w -X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=`date +'%Y-%m-%d_%T%Z'`" -o certchecker_linux main.go
run: GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=`date +'%Y-%m-%d_%T%Z'`" -o certchecker_linux main.go
env:
CGO_ENABLED: 0

Expand Down

0 comments on commit 1fbf714

Please sign in to comment.