-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hardened github workflows by pinning dependencies…
… and setting some things as readonly. Signed-off-by: Vincent Demeester <[email protected]>
- Loading branch information
1 parent
3d61d1d
commit 57322df
Showing
4 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
name: build-test | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.20.x | ||
- run: go env | ||
- name: go build | ||
run: go build -v ./... | ||
- name: go test | ||
run: go test -v ./... | ||
- name: build catalog-cd | ||
run: go build -o catalog-cd -v ./cmd/catalog-cd | ||
- name: Upload catalog-cd binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: catalog-cd-bin | ||
path: catalog-cd | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5 | ||
with: | ||
go-version: 1.20.x | ||
- run: go env | ||
- name: go build | ||
run: go build -v ./... | ||
- name: go test | ||
run: go test -v ./... | ||
- name: build catalog-cd | ||
run: go build -o catalog-cd -v ./cmd/catalog-cd | ||
- name: Upload catalog-cd binary | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 | ||
with: | ||
name: catalog-cd-bin | ||
path: catalog-cd |
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
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
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