From 97531958fd27103ea346022b18950dd0e63552ec Mon Sep 17 00:00:00 2001 From: Vivek Yadav Date: Fri, 26 Apr 2024 15:40:19 +0530 Subject: [PATCH 1/5] Update update-buildpack-toml.yml --- .github/workflows/update-buildpack-toml.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-buildpack-toml.yml b/.github/workflows/update-buildpack-toml.yml index d737284..2182eee 100644 --- a/.github/workflows/update-buildpack-toml.yml +++ b/.github/workflows/update-buildpack-toml.yml @@ -48,7 +48,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 From aee6293ed12e808bead8d243fdb71b7c50a7facd Mon Sep 17 00:00:00 2001 From: Vivek Yadav Date: Fri, 26 Apr 2024 18:48:29 +0530 Subject: [PATCH 2/5] Delete create-release-issue.yml --- .github/workflows/create-release-issue.yml | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/create-release-issue.yml diff --git a/.github/workflows/create-release-issue.yml b/.github/workflows/create-release-issue.yml deleted file mode 100644 index f87af91..0000000 --- a/.github/workflows/create-release-issue.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Create reminder issue for buildpack releases - -on: - schedule: - - cron: '54 3 * * MON' # every Monday at 3:54am UTC - workflow_dispatch: {} - -jobs: - reminder: - name: Reminder - runs-on: ubuntu-22.04 - steps: - - name: Get Month - id: date - run: | - echo "day_of_month=$(date +'%b %d')" >> "${GITHUB_OUTPUT}" - - - name: File Issue - id: file-issue - uses: initializ-buildpacks/github-config/actions/issue/file@main - with: - token: ${{ secrets.PAT }} - repo: ${{ github.repository }} - issue_title: "Week of ${{ steps.date.outputs.day_of_month }}: Cut buildpack releases" - issue_body: "" - - - name: Add issue to project - 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 - 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 From 9d086a3213760a5901a90cdeacfdaa29ff62698d Mon Sep 17 00:00:00 2001 From: initializ-bot Date: Fri, 26 Apr 2024 17:27:31 +0000 Subject: [PATCH 3/5] Updating github-config --- ...{pr-bot-approve.yml => approve-bot-pr.yml} | 2 +- .github/workflows/create-draft-release.yml | 2 +- .github/workflows/create-release-issue.yml | 37 +++++++++++++++++++ .../workflows/{label-prs.yml => label-pr.yml} | 2 +- .github/workflows/lint-yaml.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/push-buildpackage.yml | 6 ++- ...onize-label.yml => synchronize-labels.yml} | 2 +- .github/workflows/test-pull-request.yml | 2 +- .github/workflows/update-buildpack-toml.yml | 5 --- .github/workflows/update-github-config.yml | 2 - scripts/.util/builders.sh | 2 +- 12 files changed, 50 insertions(+), 16 deletions(-) rename .github/workflows/{pr-bot-approve.yml => approve-bot-pr.yml} (98%) create mode 100644 .github/workflows/create-release-issue.yml rename .github/workflows/{label-prs.yml => label-pr.yml} (94%) rename .github/workflows/{synchronize-label.yml => synchronize-labels.yml} (87%) 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 new file mode 100644 index 0000000..cee6f51 --- /dev/null +++ b/.github/workflows/create-release-issue.yml @@ -0,0 +1,37 @@ +name: Create reminder issue for buildpack releases + +on: + schedule: + - cron: '54 3 * * MON' # every Monday at 3:54am UTC + workflow_dispatch: {} + +jobs: + reminder: + name: Reminder + runs-on: ubuntu-22.04 + steps: + - name: Get Month + id: date + run: | + echo "day_of_month=$(date +'%b %d')" >> "${GITHUB_OUTPUT}" + + - name: File Issue + id: file-issue + uses: initializ-buildpacks/github-config/actions/issue/file@main + with: + token: ${{ secrets.PAT }} + repo: ${{ github.repository }} + issue_title: "Week of ${{ steps.date.outputs.day_of_month }}: Cut buildpack releases" + issue_body: "" + + - name: Add issue to project + 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 + 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 }} 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 2182eee..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 != '' }} 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/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}" From 02d523b5e9465fa49e4cb3968d733cdb5fa970d7 Mon Sep 17 00:00:00 2001 From: initializ-bot Date: Tue, 7 May 2024 15:25:48 +0530 Subject: [PATCH 4/5] update --- buildpack.toml | 8 ++++---- package.toml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/buildpack.toml b/buildpack.toml index bb83b3a..af97669 100644 --- a/buildpack.toml +++ b/buildpack.toml @@ -25,7 +25,7 @@ api = "0.7" [[order.group]] id = "initializ-buildpacks/watchexec" optional = true - version = "2.8.9" + version = "0.1.2" [[order.group]] id = "initializ-buildpacks/go-dist" @@ -52,7 +52,7 @@ api = "0.7" [[order.group]] id = "initializ-buildpacks/environment-variables" optional = true - version = "4.5.8" + version = "0.1.6" [[order.group]] id = "initializ-buildpacks/image-labels" @@ -69,7 +69,7 @@ api = "0.7" [[order.group]] id = "initializ-buildpacks/watchexec" optional = true - version = "2.8.9" + version = "0.1.2" [[order.group]] id = "initializ-buildpacks/go-dist" @@ -92,7 +92,7 @@ api = "0.7" [[order.group]] id = "initializ-buildpacks/environment-variables" optional = true - version = "4.5.8" + version = "0.1.6" [[order.group]] id = "initializ-buildpacks/image-labels" diff --git a/package.toml b/package.toml index 1846ba6..e9775b0 100644 --- a/package.toml +++ b/package.toml @@ -6,7 +6,7 @@ uri = "urn:cnb:registry:initializ-buildpacks/ca-certificates@3.6.10" [[dependencies]] - uri = "urn:cnb:registry:initializ-buildpacks/environment-variables@4.5.8" + uri = "urn:cnb:registry:initializ-buildpacks/environment-variables@0.1.6" [[dependencies]] uri = "urn:cnb:registry:initializ-buildpacks/go-dist@2.4.9" @@ -27,4 +27,4 @@ uri = "urn:cnb:registry:initializ-buildpacks/procfile@5.6.11" [[dependencies]] - uri = "urn:cnb:registry:initializ-buildpacks/watchexec@2.8.9" + uri = "urn:cnb:registry:initializ-buildpacks/watchexec@0.1.2" From 3a6151988d4db7eff050d2f530ad381bca69e714 Mon Sep 17 00:00:00 2001 From: janisar007 <134937141+janisar007@users.noreply.github.com> Date: Fri, 17 May 2024 15:20:02 +0530 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`