Skip to content

Commit b65a8df

Browse files
author
Patrick Zheng
authored
backport: from main to release-1.3 branch (#1267)
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
1 parent f78736e commit b65a8df

24 files changed

Lines changed: 258 additions & 144 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
fail-fast: true
3232
steps:
3333
- name: Set up Go ${{ matrix.go-version }}
34-
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
34+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
3535
with:
3636
go-version: ${{ matrix.go-version }}
3737
check-latest: true
3838
- name: Check out code
3939
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4040
- name: Cache Go modules
41-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
41+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4242
id: go-mod-cache
4343
with:
4444
path: ~/go/pkg/mod
@@ -59,6 +59,6 @@ jobs:
5959
make e2e-covdata
6060
fi
6161
- name: Upload coverage to codecov.io
62-
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
62+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
6363
env:
6464
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
- name: Checkout repository
4545
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4646
- name: Set up Go ${{ matrix.go-version }} environment
47-
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
47+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
4848
with:
4949
go-version: ${{ matrix.go-version }}
5050
check-latest: true
5151
- name: Initialize CodeQL
52-
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
52+
uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
5353
with:
5454
languages: go
5555
- name: Perform CodeQL Analysis
56-
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
56+
uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15

.github/workflows/release-github.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
fail-fast: true
3434
steps:
3535
- name: Set up Go ${{ matrix.go-version }}
36-
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
36+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
3737
with:
3838
go-version: ${{ matrix.go-version }}
3939
check-latest: true
@@ -46,10 +46,10 @@ jobs:
4646
pre_tag=`git tag --sort=-creatordate --list 'v*' | grep -v dev | head -2 | tail -1`
4747
echo "GORELEASER_PREVIOUS_TAG=$pre_tag" >> $GITHUB_ENV
4848
- name: Run GoReleaser
49-
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6.2.1
49+
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
5050
with:
5151
distribution: goreleaser
52-
version: latest
52+
version: v2
5353
args: release --clean
5454
env:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ jobs:
4646
persist-credentials: false
4747

4848
- name: "Run analysis"
49-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # tag=v2.4.0
49+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # tag=v2.4.1
5050
with:
5151
results_file: results.sarif
5252
results_format: sarif
5353
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
5454
publish_results: true
5555

5656
- name: "Upload artifact"
57-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # tag=v4.6.0
57+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # tag=v4.6.2
5858
with:
5959
name: SARIF file
6060
path: results.sarif
6161
retention-days: 5
6262

6363
- name: "Upload to code-scanning"
64-
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
64+
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
6565
with:
6666
sarif_file: results.sarif

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14+
version: 2
1415
builds:
1516
- main: ./cmd/notation
1617
id: notation
@@ -37,10 +38,10 @@ builds:
3738
ldflags:
3839
- -s -w -X {{.ModulePath}}/internal/version.Version={{.Version}} -X {{.ModulePath}}/internal/version.GitCommit={{.FullCommit}} -X {{.ModulePath}}/internal/version.BuildMetadata=
3940
archives:
40-
- format: tar.gz
41+
- formats: [ 'tar.gz' ]
4142
format_overrides:
4243
- goos: windows
43-
format: zip
44+
formats: [ 'zip' ]
4445
files:
4546
- LICENSE
4647
release:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Notary Project is a [CNCF Incubating project](https://www.cncf.io/projects/notar
3737
- [Build Notation from source code](/building.md)
3838
- [Governance for Notary Project](https://github.com/notaryproject/.github/blob/master/GOVERNANCE.md)
3939
- [Maintainers and reviewers list](https://github.com/notaryproject/notation/blob/main/CODEOWNERS)
40+
- [Contributing Guide](https://github.com/notaryproject/.github/blob/main/CONTRIBUTING.md)
4041
- Regular conversations for Notary Project occur on the [Cloud Native Computing Slack](https://slack.cncf.io/) **notary-project** channel.
4142

4243
### Notary Project Community Meeting

cmd/notation/cert/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Example - Add a certificate to the "tsa" type of a named store "timestamp":
5656
return addCerts(opts)
5757
},
5858
}
59-
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority")
59+
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority, tsa")
6060
command.Flags().StringVarP(&opts.namedStore, "store", "s", "", "specify named store")
6161
command.MarkFlagRequired("type")
6262
command.MarkFlagRequired("store")

cmd/notation/cert/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Example - Delete certificate "wabbit-networks-timestamp.pem" with "tsa" type fro
6767
return deleteCerts(opts)
6868
},
6969
}
70-
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority")
70+
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority, tsa")
7171
command.Flags().StringVarP(&opts.namedStore, "store", "s", "", "specify named store")
7272
command.Flags().BoolVarP(&opts.all, "all", "a", false, "delete all certificates in the named store")
7373
command.Flags().BoolVarP(&opts.confirmed, "yes", "y", false, "do not prompt for confirmation")

cmd/notation/cert/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Example - List all certificate files from trust store of type "tsa"
6363
},
6464
}
6565
opts.LoggingFlagOpts.ApplyFlags(command.Flags())
66-
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority")
66+
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority, tsa")
6767
command.Flags().StringVarP(&opts.namedStore, "store", "s", "", "specify named store")
6868
return command
6969
}

cmd/notation/cert/show.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Example - Show details of certificate "wabbit-networks-timestamp.pem" with type
6666
},
6767
}
6868
opts.LoggingFlagOpts.ApplyFlags(command.Flags())
69-
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority")
69+
command.Flags().StringVarP(&opts.storeType, "type", "t", "", "specify trust store type, options: ca, signingAuthority, tsa")
7070
command.Flags().StringVarP(&opts.namedStore, "store", "s", "", "specify named store")
7171
command.MarkFlagRequired("type")
7272
command.MarkFlagRequired("store")

0 commit comments

Comments
 (0)