diff --git a/.github/workflows/pr-bot-approve.yml b/.github/workflows/approve-bot-pr.yml similarity index 98% rename from .github/workflows/pr-bot-approve.yml rename to .github/workflows/approve-bot-pr.yml index 6a99f78..f8a757e 100644 --- a/.github/workflows/pr-bot-approve.yml +++ b/.github/workflows/approve-bot-pr.yml @@ -66,4 +66,4 @@ jobs: run: | gh pr merge ${{ needs.download.outputs.pr-number }} --auto --rebase env: - GITHUB_TOKEN: ${{ secrets.PAT }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml index c18d391..eb96e33 100644 --- a/.github/workflows/create-draft-release.yml +++ b/.github/workflows/create-draft-release.yml @@ -126,4 +126,4 @@ jobs: issue_body: | Create Draft Release workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). comment_body: | - Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} \ No newline at end of file + Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} diff --git a/.github/workflows/create-release-issue.yml b/.github/workflows/create-release-issue.yml index f87af91..cee6f51 100644 --- a/.github/workflows/create-release-issue.yml +++ b/.github/workflows/create-release-issue.yml @@ -28,10 +28,10 @@ jobs: id: issue-to-proj uses: initializ-buildpacks/github-config/actions/issue/add-to-project@main with: - # initializ buildpacks project -https://github.com/orgs/initializ-buildpacks/projects/20 + # Initializ buildpacks project -https://github.com/orgs/initializ-buildpacks/projects/20 project-org: initializ-buildpacks project-num: 20 field-name: Workstream option-name: Buildpack Releases issue-node-id: ${{ steps.file-issue.outputs.node-id }} - token: ${{ secrets.PAT }} \ No newline at end of file + token: ${{ secrets.PAT }} diff --git a/.github/workflows/label-prs.yml b/.github/workflows/label-pr.yml similarity index 94% rename from .github/workflows/label-prs.yml rename to .github/workflows/label-pr.yml index 1941009..6c67f05 100644 --- a/.github/workflows/label-prs.yml +++ b/.github/workflows/label-pr.yml @@ -30,4 +30,4 @@ jobs: if: ${{ failure() }} uses: initializ-buildpacks/github-config/actions/pull-request/auto-semver-label@main env: - GITHUB_TOKEN: ${{ secrets.PAT }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml index 116356d..21e9575 100644 --- a/.github/workflows/lint-yaml.yml +++ b/.github/workflows/lint-yaml.yml @@ -27,4 +27,4 @@ jobs: run: pip install yamllint - name: Lint YAML files - run: yamllint ./.github -c github-config/.github/.yamllint \ No newline at end of file + run: yamllint ./.github -c github-config/.github/.yamllint diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9728304..d100818 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,4 +25,4 @@ jobs: uses: golangci/golangci-lint-action@v3 with: version: latest - args: --timeout 3m0s \ No newline at end of file + args: --timeout 3m0s diff --git a/.github/workflows/push-buildpackage.yml b/.github/workflows/push-buildpackage.yml index 1a34d50..07c141b 100644 --- a/.github/workflows/push-buildpackage.yml +++ b/.github/workflows/push-buildpackage.yml @@ -5,6 +5,10 @@ on: types: - published +permissions: + id-token: write # This is required for aws oidc connection + contents: read + jobs: push: name: Push @@ -81,4 +85,4 @@ jobs: issue_body: | Push Buildpackage workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). comment_body: | - Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} \ No newline at end of file + Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} diff --git a/.github/workflows/synchronize-label.yml b/.github/workflows/synchronize-labels.yml similarity index 87% rename from .github/workflows/synchronize-label.yml rename to .github/workflows/synchronize-labels.yml index 37bf04f..3aaa017 100644 --- a/.github/workflows/synchronize-label.yml +++ b/.github/workflows/synchronize-labels.yml @@ -15,4 +15,4 @@ jobs: - uses: actions/checkout@v3 - uses: micnncim/action-label-syncer@v1 env: - GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file + GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index c3e6c9c..8d86145 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -74,4 +74,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: event-payload - path: ${{ github.event_path }} \ No newline at end of file + path: ${{ github.event_path }} diff --git a/.github/workflows/update-buildpack-toml.yml b/.github/workflows/update-buildpack-toml.yml index d737284..6281d12 100644 --- a/.github/workflows/update-buildpack-toml.yml +++ b/.github/workflows/update-buildpack-toml.yml @@ -5,9 +5,6 @@ on: - cron: '1 6 * * *' # daily at 06:01 UTC workflow_dispatch: {} -permissions: - contents: write - concurrency: buildpack_update jobs: @@ -27,7 +24,6 @@ jobs: - name: Update buildpack.toml uses: initializ-buildpacks/github-config/actions/buildpack/update@main - - name: Commit id: commit uses: initializ-buildpacks/github-config/actions/pull-request/create-commit@main @@ -36,7 +32,6 @@ jobs: pathspec: "." keyid: ${{ secrets.INITIALIZ_BOT_GPG_SIGNING_KEY_ID }} key: ${{ secrets.INITIALIZ_BOT_GPG_SIGNING_KEY }} - - name: Push Branch if: ${{ steps.commit.outputs.commit_sha != '' }} @@ -48,7 +43,7 @@ jobs: if: ${{ steps.commit.outputs.commit_sha != '' }} uses: initializ-buildpacks/github-config/actions/pull-request/open@main with: - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} + token: ${{ secrets.PAT }} title: "Updates buildpacks in buildpack.toml" branch: automations/buildpack.toml/update diff --git a/.github/workflows/update-github-config.yml b/.github/workflows/update-github-config.yml index 9c0eb75..ebbef9c 100644 --- a/.github/workflows/update-github-config.yml +++ b/.github/workflows/update-github-config.yml @@ -23,8 +23,6 @@ jobs: with: repository: initializ-buildpacks/github-config path: github-config - token: ${{ secrets.PAT }} - - name: Checkout Branch uses: initializ-buildpacks/github-config/actions/pull-request/checkout-branch@main diff --git a/README.md b/README.md index 0e7f90d..70d9349 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Go Paketo Buildpack +# Go Initializ Buildpack ## `https://hub.docker.com/r/initializbuildpacks/go` diff --git a/scripts/.util/builders.sh b/scripts/.util/builders.sh index a4b3e9a..fd2a9b3 100644 --- a/scripts/.util/builders.sh +++ b/scripts/.util/builders.sh @@ -19,7 +19,7 @@ function util::builders::list() { if [[ -z "${builders}" ]]; then util::print::info "No builders specified. Falling back to default builder..." - builders="$(jq --compact-output --null-input '["index.docker.io/paketobuildpacks/builder-jammy-buildpackless-base:latest"]')" + builders="$(jq --compact-output --null-input '["index.docker.io/initializbuildpacks/securepacks-initzbuilder:latest"]')" fi echo "${builders}"