diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 62a30e7..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: 🐞 Bug -description: Create a report to help us improve -labels: ["tech-issues"] -body: - - type: markdown - attributes: - value: | - Thank you for reporting an issue. Before you open the bug report please review the README file present in the root of this repository. - - Please fill in as much of the following form as you're able to. - - type: textarea - attributes: - label: What steps will reproduce the bug? - description: Enter details about your bug. - placeholder: | - 1. In this environment... - 2. With this config... - 3. Run '...' - 4. See error... - validations: - required: true - - type: textarea - attributes: - label: What is the expected behavior? - description: If possible please provide textual output instead of screenshots. - - type: textarea - attributes: - label: What do you see instead? - description: If possible please provide textual output instead of screenshots. - validations: - required: true - - type: textarea - attributes: - label: Additional information - description: Tell us anything else you think we should know. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 3ba13e0..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1 +0,0 @@ -blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index d2c53bd..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: "\U0001F680 Feature request" -description: Suggest an idea for this project -labels: ["feature-request"] -body: - - type: markdown - attributes: - value: | - Thank you for suggesting an idea to improve this tool. - Please fill in as much of the following form as you're able to. - - type: textarea - attributes: - label: What is the problem this feature will solve? - validations: - required: true - - type: textarea - attributes: - label: What is the feature you are proposing to solve the problem? - description: Describe the requests. If you already have something in mind... PRs are welcome! - validations: - required: true - - type: textarea - attributes: - label: What alternatives have you considered? diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 60bb424..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,32 +0,0 @@ - - -### Description of the change - - - -### Benefits - - - -### Possible drawbacks - - - -### Applicable issues - - - - fixes # - -### Additional information - - diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 48f4288..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -version: 2 -# Check for updates to GitHub Actions every week -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/clossing-issues.yml b/.github/workflows/clossing-issues.yml deleted file mode 100644 index cd7c707..0000000 --- a/.github/workflows/clossing-issues.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] Close Solved issues' -on: - schedule: - # Hourly - - cron: '0 * * * *' -# Remove all permissions by default. Actions are performed by Bitnami Bot -permissions: {} -jobs: - stale: - runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'bitnami' }} - steps: - - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 - with: - any-of-labels: 'solved' - stale-issue-label: 'solved' - days-before-stale: 0 - days-before-close: 0 - repo-token: ${{ secrets.BITNAMI_SUPPORT_BOARD_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml deleted file mode 100644 index b7bb4a4..0000000 --- a/.github/workflows/comments.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] Comments based card movements' -on: - issue_comment: - types: - - created -permissions: - contents: read - pull-requests: write - issues: write -# Avoid concurrency over the same issue -concurrency: - group: card-movement-${{ github.event.issue.number }} -jobs: - call-comments-workflow: - if: ${{ github.repository_owner == 'bitnami' }} - uses: bitnami/support/.github/workflows/comment-created.yml@main - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 140ac0e..ae3c2c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 with: - go-version: '^1.25' # The Go version to download (if necessary) and use. + go-version: "^1.25" # The Go version to download (if necessary) and use. - name: Install Build Dependencies run: make get-build-deps - name: Download required modules @@ -55,10 +55,11 @@ jobs: path: | out/*.tar.gz release: - needs: [ 'build-and-test' ] + needs: ["build-and-test"] permissions: contents: write - if: github.repository == 'bitnami/render-template' && startsWith(github.ref, 'refs/tags/') + actions: read + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 @@ -71,6 +72,11 @@ jobs: - name: Release run: | set -e + echo "=== Debug: Listing artifacts directory ===" + ls -la ./artifacts/ || echo "No artifacts directory" + ls -la ./artifacts/built-binaries/ || echo "No built-binaries directory" + find ./artifacts -type f || echo "No files found" + echo "===========================================" create_digest_file() { local digest_file=${1:?You must provide the digest file path} shift @@ -98,14 +104,3 @@ jobs: fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - notify: - name: Send notification - needs: - - release - if: ${{ always() && needs.release.result == 'failure' }} - uses: bitnami/support/.github/workflows/gchat-notification.yml@main - with: - workflow: ${{ github.workflow }} - job-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - secrets: - webhook-url: ${{ secrets.GCHAT_CONTENT_ALERTS_WEBHOOK_URL }} diff --git a/.github/workflows/move-closed-issues.yml b/.github/workflows/move-closed-issues.yml deleted file mode 100644 index 2e1698c..0000000 --- a/.github/workflows/move-closed-issues.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] Move closed issues' -on: - issues: - types: - - closed - pull_request_target: - types: - - closed -permissions: - issues: write - pull-requests: write -# Avoid concurrency over the same issue -concurrency: - group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }} -jobs: - call-move-closed-workflow: - if: ${{ github.repository_owner == 'bitnami' }} - uses: bitnami/support/.github/workflows/item-closed.yml@main - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-review-hack.yml b/.github/workflows/pr-review-hack.yml deleted file mode 100644 index 05d5ac0..0000000 --- a/.github/workflows/pr-review-hack.yml +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# This is a hack to run reusable workflows in the main repo context and not from the forked repository. -# We this hack we can use secrets configured in the organization. -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] PR review comment trigger' -on: - workflow_run: - workflows: - - '\[Support\] PR review comment card movements' - types: - - completed -permissions: {} -jobs: - pr-info: - runs-on: ubuntu-latest - permissions: - pull-requests: read - actions: read - outputs: - author: ${{ steps.get-info.outputs.author }} - actor: ${{ steps.get-info.outputs.actor }} - review_state: ${{ steps.get-info.outputs.review_state }} - labels: ${{ steps.get-info.outputs.labels }} - resource_url: ${{ steps.get-info.outputs.resource_url }} - if: ${{ github.repository_owner == 'bitnami' && github.event.workflow_run.conclusion == 'success' }} - steps: - - id: get-info - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: | - actor="${{ github.event.workflow_run.actor.login }}" - download_url="$(gh api "${{ github.event.workflow_run.artifacts_url }}" | jq -cr '.artifacts[] | select(.name == "pull_request_info.json") | .archive_download_url')" - curl -sSL -o pull_request_info.zip -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: Bearer $GITHUB_TOKEN" $download_url - unzip pull_request_info.zip - pull_request_number="$(jq -cr '.issue.number' pull_request_info.json)" - issue_review_state="$(jq -cr '.review.state' pull_request_info.json)" - pull_request="$(gh api "repos/${GITHUB_REPOSITORY}/pulls/${pull_request_number}")" - author="$(echo $pull_request | jq -cr '.user.login')" - author_association="$(echo $pull_request | jq -cr '.author_association')" - labels="$(echo $pull_request | jq -cr '[.labels[].name]')" - resource_url="$(echo $pull_request | jq -cr '.html_url')" - - echo "::notice:: Managing PR #${pull_request_number}" - echo "actor=${actor}" >> $GITHUB_OUTPUT - echo "author=${author}" >> $GITHUB_OUTPUT - echo "author_association=${author_association}" >> $GITHUB_OUTPUT - echo "review_state=${issue_review_state}" >> $GITHUB_OUTPUT - echo "labels=${labels}" >> $GITHUB_OUTPUT - echo "resource_url=${resource_url}" >> $GITHUB_OUTPUT - call-pr-review-comment: - uses: bitnami/support/.github/workflows/pr-review-comment.yml@main - needs: pr-info - permissions: - contents: read - secrets: inherit - with: - author: ${{ needs.pr-info.outputs.author }} - actor: ${{ needs.pr-info.outputs.actor }} - labels: ${{ needs.pr-info.outputs.labels }} - review_state: ${{ needs.pr-info.outputs.review_state }} - resource_url: ${{ needs.pr-info.outputs.resource_url }} diff --git a/.github/workflows/pr-reviews-requested.yml b/.github/workflows/pr-reviews-requested.yml deleted file mode 100644 index 1f18378..0000000 --- a/.github/workflows/pr-reviews-requested.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] Review based card movements' -on: - pull_request_target: - types: - - review_requested - - synchronize -permissions: - contents: read -# Avoid concurrency over the same issue -concurrency: - group: card-movement-${{ github.event.number }} -jobs: - call-pr-review-workflow: - if: ${{ github.repository_owner == 'bitnami' }} - uses: bitnami/support/.github/workflows/pr-review-requested-sync.yml@main - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-reviews.yml b/.github/workflows/pr-reviews.yml deleted file mode 100644 index 2b35743..0000000 --- a/.github/workflows/pr-reviews.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] PR review comment card movements' -on: - pull_request_review_comment: - types: - - created - pull_request_review: - types: - - submitted - - dismissed -permissions: {} -# Avoid concurrency over the same issue -concurrency: - group: card-movement-${{ github.event.pull_request.number }} -jobs: - just-notice: - # This is a dummy workflow that triggers a workflow_run - runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'bitnami' }} - steps: - - run: | - echo "::notice:: Comment on PR #${{ github.event.pull_request.number }}" - jq -n --arg issue '${{ github.event.pull_request.number }}' --arg state '${{ github.event.review != null && github.event.review.state || '' }}' '{"issue": {"number": $issue }, "review": { "state": $state }}' > pull_request_info.json - - name: Upload the PR info - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 - with: - name: pull_request_info.json - path: ./pull_request_info.json \ No newline at end of file diff --git a/.github/workflows/reasign.yml b/.github/workflows/reasign.yml deleted file mode 100644 index affebd9..0000000 --- a/.github/workflows/reasign.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] Review based card movements' -on: - pull_request_target: - types: - - labeled - issues: - types: - - labeled -permissions: - contents: read - pull-requests: write - issues: write -# Avoid concurrency over the same issue -concurrency: - group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }} -jobs: - call-reasign-workflow: - if: ${{ github.repository_owner == 'bitnami' }} - uses: bitnami/support/.github/workflows/item-labeled.yml@main - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 98b64ab..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] Close stale issues and PRs' -on: - workflow_dispatch: - schedule: - - cron: '0 1 * * *' -# Remove all permissions by default -permissions: {} -# This job won't trigger any additional event. All actions are performed with GITHUB_TOKEN -jobs: - stale: - runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'bitnami' }} - permissions: - issues: write - pull-requests: write - steps: - # This step will add the stale comment and label for the first 15 days without activity. It won't close any task - - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.' - stale-pr-message: 'This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.' - days-before-stale: 15 - days-before-close: -1 - exempt-issue-labels: 'on-hold' - exempt-pr-labels: 'on-hold' - operations-per-run: 500 - # This step will add the 'solved' label and the last comment before closing the issue or PR. Note that it won't close any issue or PR, they will be closed by the clossing-issues workflow - - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.' - stale-pr-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.' - any-of-labels: 'stale' - stale-issue-label: 'solved' - stale-pr-label: 'solved' - days-before-stale: 5 - days-before-close: -1 - exempt-issue-labels: 'on-hold' - exempt-pr-labels: 'on-hold' - operations-per-run: 200 \ No newline at end of file diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml deleted file mode 100644 index bae4cde..0000000 --- a/.github/workflows/triage.yml +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - -# This workflow is built to manage the triage support by using GH issues. -# NOTE: This workflow is maintained in the https://github.com/bitnami/support repository -name: '[Support] Organize triage' -on: - issues: - types: - - reopened - - opened - pull_request_target: - types: - - reopened - - opened -permissions: - contents: read - pull-requests: write - issues: write -# Avoid concurrency over the same issue -concurrency: - group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }} -jobs: - call-triage-workflow: - if: ${{ github.repository_owner == 'bitnami' }} - uses: bitnami/support/.github/workflows/item-opened.yml@main - secrets: inherit \ No newline at end of file