mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-19 13:07:17 +03:00
🌱 Fix goreleaser permission and flags
Fixes goreleaser flags issue and sets specific permission for goreleaser.
This commit is contained in:
parent
1b885874ac
commit
fd238d0e40
2
.github/workflows/goreleaser.yaml
vendored
2
.github/workflows/goreleaser.yaml
vendored
@ -22,6 +22,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
|
@ -7,7 +7,10 @@ before:
|
|||||||
hooks:
|
hooks:
|
||||||
- go mod download
|
- go mod download
|
||||||
builds:
|
builds:
|
||||||
flags:
|
- id: linux
|
||||||
|
binary: scorecard-linux-{{ .Arch }}
|
||||||
|
no_unique_dist_dir: true
|
||||||
|
flags:
|
||||||
# trimpath is for reproducible builds
|
# trimpath is for reproducible builds
|
||||||
# remove all file system paths from the resulting executable.
|
# remove all file system paths from the resulting executable.
|
||||||
# Instead of absolute file system paths, the recorded file names
|
# Instead of absolute file system paths, the recorded file names
|
||||||
@ -16,10 +19,6 @@ flags:
|
|||||||
# or a plain import path (when using GOPATH).
|
# or a plain import path (when using GOPATH).
|
||||||
- -trimpath
|
- -trimpath
|
||||||
- -tags=netgo
|
- -tags=netgo
|
||||||
|
|
||||||
- id: linux
|
|
||||||
binary: scorecard-linux-{{ .Arch }}
|
|
||||||
no_unique_dist_dir: true
|
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
@ -33,6 +32,15 @@ flags:
|
|||||||
- id: darwin
|
- id: darwin
|
||||||
binary: scorecard-darwin-{{ .Arch }}
|
binary: scorecard-darwin-{{ .Arch }}
|
||||||
no_unique_dist_dir: true
|
no_unique_dist_dir: true
|
||||||
|
flags:
|
||||||
|
# trimpath is for reproducible builds
|
||||||
|
# remove all file system paths from the resulting executable.
|
||||||
|
# Instead of absolute file system paths, the recorded file names
|
||||||
|
# will begin with either "go" (for the standard library),
|
||||||
|
# or a module path@version (when using modules),
|
||||||
|
# or a plain import path (when using GOPATH).
|
||||||
|
- -trimpath
|
||||||
|
- -tags=netgo
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
@ -44,6 +52,15 @@ flags:
|
|||||||
- id: windows
|
- id: windows
|
||||||
binary: scorecard-windows-{{ .Arch }}
|
binary: scorecard-windows-{{ .Arch }}
|
||||||
no_unique_dist_dir: true
|
no_unique_dist_dir: true
|
||||||
|
flags:
|
||||||
|
# trimpath is for reproducible builds
|
||||||
|
# remove all file system paths from the resulting executable.
|
||||||
|
# Instead of absolute file system paths, the recorded file names
|
||||||
|
# will begin with either "go" (for the standard library),
|
||||||
|
# or a module path@version (when using modules),
|
||||||
|
# or a plain import path (when using GOPATH).
|
||||||
|
- -trimpath
|
||||||
|
- -tags=netgo
|
||||||
goos:
|
goos:
|
||||||
- windows
|
- windows
|
||||||
goarch:
|
goarch:
|
||||||
|
Loading…
Reference in New Issue
Block a user