From 4340fbbb94ce92279d11bcc3b52345ee8b4eaa7b Mon Sep 17 00:00:00 2001 From: mi-wada Date: Mon, 9 Dec 2024 16:20:00 +0900 Subject: [PATCH 1/2] Update scripts/generate-popular-actions/popular_actions.json Run `go run ./scripts/generate-popular-actions -d`. And fix these action's metadata. * https://github.com/actions/attest-build-provenance/releases/tag/v2.0.0 --- scripts/generate-popular-actions/popular_actions.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate-popular-actions/popular_actions.json b/scripts/generate-popular-actions/popular_actions.json index cb03db66f..a291171eb 100644 --- a/scripts/generate-popular-actions/popular_actions.json +++ b/scripts/generate-popular-actions/popular_actions.json @@ -471,8 +471,8 @@ }, { "slug": "actions/attest-build-provenance", - "tags": ["v1"], - "next": "v2" + "tags": ["v1", "v2"], + "next": "v3" }, { "slug": "actions/add-to-project", From e20c04be6cc3fea93f7278d4cce2f47c5dfb17cf Mon Sep 17 00:00:00 2001 From: mi-wada Date: Mon, 9 Dec 2024 16:22:32 +0900 Subject: [PATCH 2/2] go generate --- popular_actions.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/popular_actions.go b/popular_actions.go index e8ea81584..4aeb0da56 100644 --- a/popular_actions.go +++ b/popular_actions.go @@ -279,6 +279,20 @@ var PopularActions = map[string]*ActionMetadata{ "bundle-path": {"bundle-path"}, }, }, + "actions/attest-build-provenance@v2": { + Name: "Attest Build Provenance", + Inputs: ActionMetadataInputs{ + "github-token": {"github-token", false}, + "push-to-registry": {"push-to-registry", false}, + "show-summary": {"show-summary", false}, + "subject-digest": {"subject-digest", false}, + "subject-name": {"subject-name", false}, + "subject-path": {"subject-path", false}, + }, + Outputs: ActionMetadataOutputs{ + "bundle-path": {"bundle-path"}, + }, + }, "actions/cache/restore@v4": { Name: "Restore Cache", Inputs: ActionMetadataInputs{ @@ -2138,6 +2152,7 @@ var PopularActions = map[string]*ActionMetadata{ Name: "actionlint with reviewdog", Inputs: ActionMetadataInputs{ "actionlint_flags": {"actionlint_flags", false}, + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "github_token": {"github_token", false}, @@ -2151,6 +2166,7 @@ var PopularActions = map[string]*ActionMetadata{ Name: "Run eslint with reviewdog", Inputs: ActionMetadataInputs{ "eslint_flags": {"eslint_flags", false}, + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "github_token": {"github_token", false}, @@ -2180,6 +2196,7 @@ var PopularActions = map[string]*ActionMetadata{ Name: "Run golangci-lint with reviewdog", Inputs: ActionMetadataInputs{ "cache": {"cache", false}, + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "github_token": {"github_token", false}, @@ -2199,6 +2216,7 @@ var PopularActions = map[string]*ActionMetadata{ Name: "Run hadolint with reviewdog", Inputs: ActionMetadataInputs{ "exclude": {"exclude", false}, + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "github_token": {"github_token", false}, @@ -2214,6 +2232,7 @@ var PopularActions = map[string]*ActionMetadata{ Name: "Run misspell with reviewdog", Inputs: ActionMetadataInputs{ "exclude": {"exclude", false}, + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "github_token": {"github_token", false}, @@ -2246,6 +2265,7 @@ var PopularActions = map[string]*ActionMetadata{ "reviewdog/action-rubocop@v2": { Name: "Run rubocop with reviewdog", Inputs: ActionMetadataInputs{ + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "github_token": {"github_token", false}, @@ -2267,6 +2287,7 @@ var PopularActions = map[string]*ActionMetadata{ Inputs: ActionMetadataInputs{ "check_all_files_with_shebangs": {"check_all_files_with_shebangs", false}, "exclude": {"exclude", false}, + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "github_token": {"github_token", false}, @@ -2281,6 +2302,7 @@ var PopularActions = map[string]*ActionMetadata{ "reviewdog/action-tflint@v1": { Name: "Run tflint with reviewdog", Inputs: ActionMetadataInputs{ + "fail_level": {"fail_level", false}, "fail_on_error": {"fail_on_error", false}, "filter_mode": {"filter_mode", false}, "flags": {"flags", false},