diff --git a/.github/workflows/publish-oci.yml b/.github/workflows/publish-oci.yml index e7cff0c6..2853d39f 100644 --- a/.github/workflows/publish-oci.yml +++ b/.github/workflows/publish-oci.yml @@ -17,6 +17,8 @@ jobs: steps: - name: Check out code into the Go module directory uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + fetch-depth: 0 - name: Set up QEMU id: qemu @@ -27,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: | @@ -49,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" @@ -61,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