Skip to content

Commit be8fddc

Browse files
Use LGTM_GITHUB_TOKEN instead of GitHub App token (#1259)
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
1 parent 557de09 commit be8fddc

3 files changed

Lines changed: 13 additions & 15 deletions

File tree

.github/workflows/publish-oci.yml

Lines changed: 4 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,7 @@ jobs:
6355
6456
- name: Publish OCI charts
6557
env:
66-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
58+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
6759
CHART_REPOSITORY: ${{ secrets.CHART_REPOSITORY }}
6860
run: |
6961
export REGISTRY_0=oci://ghcr.io/appscode-charts

.github/workflows/release-tracker.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: release-tracker
33
on:
44
pull_request:
55
types: [closed]
6-
workflow_dispatch:
76

87
concurrency:
98
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
@@ -28,7 +27,6 @@ jobs:
2827

2928
- name: Update release tracker
3029
env:
31-
GITHUB_USER: ${{ github.actor }}
3230
GITHUB_TOKEN: ${{ steps.lgtm-app-token.outputs.token }}
3331
run: |
3432
./hack/scripts/update-release-tracker.sh

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
name: Build
1717
runs-on: ubuntu-24.04
1818
permissions:
19-
contents: write
19+
contents: read
20+
packages: write
2021
steps:
2122
- name: Check out code into the Go module directory
2223
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -27,6 +28,13 @@ jobs:
2728
run: |
2829
pushd /usr/local/bin && sudo curl -fsSLO https://github.com/x-helm/helm/releases/latest/download/helm && sudo chmod +x helm && popd
2930
31+
- name: Log in to the GitHub Container registry
32+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.actor }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
3038
- name: Clone charts repository
3139
env:
3240
GITHUB_USER: 1gtm

0 commit comments

Comments
 (0)