Skip to content

Commit 302d5dd

Browse files
Use lgtm token for oci push
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
1 parent 95a140e commit 302d5dd

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/publish-oci.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,12 @@ jobs:
2929
- name: Set up Docker Buildx
3030
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
3131

32-
- name: Generate GitHub App token
33-
id: app-token
34-
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
35-
with:
36-
client-id: ${{ secrets.GHCRX_APP_CLIENT_ID }}
37-
private-key: ${{ secrets.GHCRX_APP_PRIVATE_KEY }}
38-
owner: appscode-charts
39-
4032
- name: Log in to the GitHub Container registry
4133
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
4234
with:
4335
registry: ghcr.io
44-
username: ${{ github.actor }}
45-
password: ${{ steps.app-token.outputs.token }}
36+
username: 1gtm
37+
password: ${{ secrets.LGTM_GITHUB_TOKEN }}
4638

4739
- name: Install Helm 3
4840
run: |
@@ -51,7 +43,7 @@ jobs:
5143
- name: Clone charts repository
5244
env:
5345
GITHUB_USER: 1gtm
54-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
46+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
5547
CHART_REPOSITORY: ${{ secrets.CHART_REPOSITORY }}
5648
run: |
5749
url="https://${GITHUB_USER}:${GITHUB_TOKEN}@${CHART_REPOSITORY}.git"
@@ -63,7 +55,8 @@ jobs:
6355
6456
- name: Publish OCI charts
6557
env:
66-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
58+
GITHUB_USER: 1gtm
59+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
6760
CHART_REPOSITORY: ${{ secrets.CHART_REPOSITORY }}
6861
run: |
6962
export REGISTRY_0=oci://ghcr.io/appscode-charts

0 commit comments

Comments
 (0)