diff --git a/octo/builder_dependencies.go b/octo/builder_dependencies.go index dbcc359a..e7ed7c5c 100644 --- a/octo/builder_dependencies.go +++ b/octo/builder_dependencies.go @@ -87,7 +87,7 @@ func contributeBuildImage(descriptor Descriptor, image string, classifier string RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -117,7 +117,7 @@ func contributeBuildImage(descriptor Descriptor, image string, classifier string }, }, { - Uses: "peter-evans/create-pull-request@v3", + Uses: "peter-evans/create-pull-request@v4", With: map[string]interface{}{ "token": descriptor.GitHub.Token, "author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username), @@ -157,7 +157,7 @@ func contributeLifecycle(descriptor Descriptor) (Contribution, error) { RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -191,7 +191,7 @@ func contributeLifecycle(descriptor Descriptor) (Contribution, error) { }, }, { - Uses: "peter-evans/create-pull-request@v3", + Uses: "peter-evans/create-pull-request@v4", With: map[string]interface{}{ "token": descriptor.GitHub.Token, "author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username), diff --git a/octo/buildpack_dependencies.go b/octo/buildpack_dependencies.go index b4a04d41..501e0183 100644 --- a/octo/buildpack_dependencies.go +++ b/octo/buildpack_dependencies.go @@ -41,7 +41,7 @@ func ContributeBuildpackDependencies(descriptor Descriptor) ([]Contribution, err RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -77,7 +77,7 @@ func ContributeBuildpackDependencies(descriptor Descriptor) ([]Contribution, err "PURL_PATTERN": d.PURLPattern, }, }, { - Uses: "peter-evans/create-pull-request@v3", + Uses: "peter-evans/create-pull-request@v4", With: map[string]interface{}{ "token": descriptor.GitHub.Token, "author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username), diff --git a/octo/create_builder.go b/octo/create_builder.go index 1e7d7bf9..98216019 100644 --- a/octo/create_builder.go +++ b/octo/create_builder.go @@ -41,7 +41,7 @@ func ContributeCreateBuilder(descriptor Descriptor) (*Contribution, error) { RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { diff --git a/octo/create_package.go b/octo/create_package.go index 4b13b3fa..3d04a7cc 100644 --- a/octo/create_package.go +++ b/octo/create_package.go @@ -69,7 +69,7 @@ func ContributeCreatePackage(descriptor Descriptor) (*Contribution, error) { RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -95,7 +95,7 @@ func ContributeCreatePackage(descriptor Descriptor) (*Contribution, error) { Uses: "actions/checkout@v3", }, { - Uses: "actions/cache@v2", + Uses: "actions/cache@v3", If: fmt.Sprintf("${{ %t }}", descriptor.Package.IncludeDependencies), With: map[string]interface{}{ "path": strings.Join([]string{ diff --git a/octo/draft_release.go b/octo/draft_release.go index 37ae086d..873c8fe8 100644 --- a/octo/draft_release.go +++ b/octo/draft_release.go @@ -139,7 +139,7 @@ func ContributeDraftRelease(descriptor Descriptor) ([]Contribution, error) { }, actions.Step{ Name: "Update draft release with buildpack information", - Uses: "ghcr.io/paketo-buildpacks/actions/draft-release", + Uses: "docker://ghcr.io/paketo-buildpacks/actions/draft-release:main", With: map[string]interface{}{ "github_token": descriptor.GitHub.Token, "release_id": "${{ steps.release-drafter.outputs.id }}", diff --git a/octo/lite_packages.go b/octo/lite_packages.go index 9de64e08..b636c3bb 100644 --- a/octo/lite_packages.go +++ b/octo/lite_packages.go @@ -73,7 +73,7 @@ func contributeLitePackage(descriptor Descriptor, republishImage RepublishImage) }, }, { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", If: "${{ ! steps.version.outputs.skip }}", With: map[string]interface{}{"go-version": GoVersion}, }, diff --git a/octo/offline_packages.go b/octo/offline_packages.go index 7afe5641..d78d2758 100644 --- a/octo/offline_packages.go +++ b/octo/offline_packages.go @@ -74,12 +74,12 @@ func contributeOfflinePackage(descriptor Descriptor, offlinePackage OfflinePacka }, }, { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", If: "${{ ! steps.version.outputs.skip }}", With: map[string]interface{}{"go-version": GoVersion}, }, { - Uses: "actions/cache@v2", + Uses: "actions/cache@v3", If: "${{ ! steps.version.outputs.skip }}", With: map[string]interface{}{ "path": strings.Join([]string{ diff --git a/octo/package_dependencies.go b/octo/package_dependencies.go index 8b3b3c2d..912ef4a0 100644 --- a/octo/package_dependencies.go +++ b/octo/package_dependencies.go @@ -135,7 +135,7 @@ func contributePackageDependency(descriptor Descriptor, name string, bpId string RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -162,7 +162,7 @@ func contributePackageDependency(descriptor Descriptor, name string, bpId string Env: map[string]string{"DEPENDENCY": name}, }, { - Uses: "peter-evans/create-pull-request@v3", + Uses: "peter-evans/create-pull-request@v4", With: map[string]interface{}{ "token": descriptor.GitHub.Token, "author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username), diff --git a/octo/test.go b/octo/test.go index 51b6ca75..4488fd9b 100644 --- a/octo/test.go +++ b/octo/test.go @@ -74,7 +74,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) { Uses: "actions/checkout@v3", }, { - Uses: "actions/cache@v2", + Uses: "actions/cache@v3", With: map[string]interface{}{ "path": "${{ env.HOME }}/go/pkg/mod", "key": "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}", @@ -82,7 +82,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) { }, }, { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, }, @@ -115,7 +115,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) { Uses: "actions/checkout@v2", }, { - Uses: "actions/cache@v2", + Uses: "actions/cache@v3", With: map[string]interface{}{ "path": "${{ env.HOME }}/go/pkg/mod", "key": "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}", @@ -123,7 +123,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) { }, }, { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -201,7 +201,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) { RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -222,7 +222,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) { Uses: "actions/checkout@v3", }, { - Uses: "actions/cache@v2", + Uses: "actions/cache@v3", With: map[string]interface{}{ "path": strings.Join([]string{ "${{ env.HOME }}/.pack", diff --git a/octo/update_pipeline.go b/octo/update_pipeline.go index 053c39e3..56390e7e 100644 --- a/octo/update_pipeline.go +++ b/octo/update_pipeline.go @@ -41,7 +41,7 @@ func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error) { RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest}, Steps: []actions.Step{ { - Uses: "actions/setup-go@v2", + Uses: "actions/setup-go@v3", With: map[string]interface{}{"go-version": GoVersion}, }, { @@ -61,7 +61,7 @@ func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error) { }, }, { - Uses: "peter-evans/create-pull-request@v3", + Uses: "peter-evans/create-pull-request@v4", With: map[string]interface{}{ "token": descriptor.GitHub.Token, "author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username),