Skip to content

Commit

Permalink
Improve GitHub Actions usage
Browse files Browse the repository at this point in the history
- Pins third-party actions to commit hash
- Explicitly sets permissions
  • Loading branch information
anothertobi committed Dec 28, 2024
1 parent df642dc commit 303a2bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: goreleaser/goreleaser-action@v6
- uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf
with:
version: latest
args: release --clean
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Go test

on: [push]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 303a2bd

Please sign in to comment.