diff --git a/.github/workflows/publish-oci.yml b/.github/workflows/publish-oci.yml index 5b93fd6ee..2853d39f3 100644 --- a/.github/workflows/publish-oci.yml +++ b/.github/workflows/publish-oci.yml @@ -29,20 +29,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 - - name: Generate GitHub App token - id: app-token - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 - with: - client-id: ${{ secrets.GHCRX_APP_CLIENT_ID }} - private-key: ${{ secrets.GHCRX_APP_PRIVATE_KEY }} - owner: appscode-charts - - name: Log in to the GitHub Container registry uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 with: registry: ghcr.io - username: ${{ github.actor }} - password: ${{ steps.app-token.outputs.token }} + username: 1gtm + password: ${{ secrets.LGTM_GITHUB_TOKEN }} - name: Install Helm 3 run: | @@ -51,7 +43,7 @@ jobs: - name: Clone charts repository env: GITHUB_USER: 1gtm - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }} CHART_REPOSITORY: ${{ secrets.CHART_REPOSITORY }} run: | url="https://${GITHUB_USER}:${GITHUB_TOKEN}@${CHART_REPOSITORY}.git" @@ -63,7 +55,7 @@ jobs: - name: Publish OCI charts env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }} CHART_REPOSITORY: ${{ secrets.CHART_REPOSITORY }} run: | export REGISTRY_0=oci://ghcr.io/appscode-charts diff --git a/.github/workflows/release-tracker.yml b/.github/workflows/release-tracker.yml index e2c1a9407..4032f83e1 100644 --- a/.github/workflows/release-tracker.yml +++ b/.github/workflows/release-tracker.yml @@ -3,7 +3,6 @@ name: release-tracker on: pull_request: types: [closed] - workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} @@ -28,7 +27,6 @@ jobs: - name: Update release tracker env: - GITHUB_USER: ${{ github.actor }} GITHUB_TOKEN: ${{ steps.lgtm-app-token.outputs.token }} run: | ./hack/scripts/update-release-tracker.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72a0f4a5a..bf7359b47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,8 @@ jobs: name: Build runs-on: ubuntu-24.04 permissions: - contents: write + contents: read + packages: write steps: - name: Check out code into the Go module directory uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 @@ -27,6 +28,13 @@ jobs: run: | pushd /usr/local/bin && sudo curl -fsSLO https://github.com/x-helm/helm/releases/latest/download/helm && sudo chmod +x helm && popd + - name: Log in to the GitHub Container registry + uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Clone charts repository env: GITHUB_USER: 1gtm