Skip to content

Commit dc57883

Browse files
authored
Merge pull request #16 from ProcessMaker/update-gittoken
use GIT_TOKEN var
2 parents 7d0c43a + 5c8c131 commit dc57883

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/scripts/gh_comment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ fi
1414
comment_url=https://api.github.com/repos/ProcessMaker/$project/issues/$pull_id/comments
1515

1616
curl $comment_url \
17-
-s -H "Authorization: token $GITHUB_TOKEN" \
17+
-s -H "Authorization: token $GIT_TOKEN" \
1818
-X POST -d "{\"body\": \"QA server K8S was successfully deployed $INSTANCE_URL\"}"

.github/workflows/deploy-pm4.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ env:
2828
GH_USER: ${{ secrets.GH_USER }}
2929
GH_EMAIL: ${{ secrets.GH_EMAIL }}
3030
DOM_EKS: ${{ secrets.DOM_EKS }}
31-
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
31+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
3232
BUILD_BASE: ${{ (contains(github.event.pull_request.body, 'ci:build-base') || github.event_name == 'schedule') && '1' || '0' }}
3333
MULTITENANCY: ${{ (contains(github.event.pull_request.body, 'ci:multitenancy')) && 'true' || 'false' }}
3434
BASE_IMAGE: ${{ secrets.REGISTRY_HOST }}/processmaker/processmaker:base
@@ -258,7 +258,7 @@ jobs:
258258
done
259259
# Send the content of /tmp/comment.md as a PR comment
260260
MESSAGE=$(cat /tmp/comment.md)
261-
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
261+
GIT_TOKEN=${{ secrets.GIT_TOKEN }}
262262
GITHUB_REPOSITORY=${{ github.repository }}
263263
PR_NUMBER=$(jq -r .number < "$GITHUB_EVENT_PATH")
264264
@@ -271,7 +271,7 @@ jobs:
271271
json_payload=$(jq -n --arg message "$MESSAGE" '{"body": $message}')
272272
273273
curl -s \
274-
-H "Authorization: token ${GITHUB_TOKEN}" \
274+
-H "Authorization: token ${GIT_TOKEN}" \
275275
-H "Accept: application/vnd.github.v3+json" \
276276
-d "$json_payload" \
277277
"${URL}"
@@ -340,7 +340,7 @@ jobs:
340340
# - name: Clone repo K8S
341341
# run: |
342342
# echo "IMAGE: ${{ env.IMAGE }}"
343-
# git clone --depth 1 -b "$K8S_BRANCH" "https://$GITHUB_TOKEN@github.com/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution
343+
# git clone --depth 1 -b "$K8S_BRANCH" "https://$GIT_TOKEN@github.com/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution
344344

345345
- name: Login to Harbor
346346
uses: docker/login-action@v2
@@ -369,7 +369,7 @@ jobs:
369369
- name: SonarQube Coverage Report
370370
uses: sonarsource/sonarqube-scan-action@master
371371
env:
372-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
372+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
373373
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
374374
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
375375
with:

0 commit comments

Comments
 (0)