diff --git a/.github/scripts/gh_comment.sh b/.github/scripts/gh_comment.sh index c2df434..471a026 100644 --- a/.github/scripts/gh_comment.sh +++ b/.github/scripts/gh_comment.sh @@ -14,5 +14,5 @@ fi comment_url=https://api.github.com/repos/ProcessMaker/$project/issues/$pull_id/comments curl $comment_url \ - -s -H "Authorization: token $GITHUB_TOKEN" \ + -s -H "Authorization: token $GIT_TOKEN" \ -X POST -d "{\"body\": \"QA server K8S was successfully deployed $INSTANCE_URL\"}" \ No newline at end of file diff --git a/.github/workflows/deploy-pm4.yml b/.github/workflows/deploy-pm4.yml index 8e00043..ded39c3 100644 --- a/.github/workflows/deploy-pm4.yml +++ b/.github/workflows/deploy-pm4.yml @@ -28,7 +28,7 @@ env: GH_USER: ${{ secrets.GH_USER }} GH_EMAIL: ${{ secrets.GH_EMAIL }} DOM_EKS: ${{ secrets.DOM_EKS }} - GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + GIT_TOKEN: ${{ secrets.GIT_TOKEN }} BUILD_BASE: ${{ (contains(github.event.pull_request.body, 'ci:build-base') || github.event_name == 'schedule') && '1' || '0' }} MULTITENANCY: ${{ (contains(github.event.pull_request.body, 'ci:multitenancy')) && 'true' || 'false' }} BASE_IMAGE: ${{ secrets.REGISTRY_HOST }}/processmaker/processmaker:base @@ -258,7 +258,7 @@ jobs: done # Send the content of /tmp/comment.md as a PR comment MESSAGE=$(cat /tmp/comment.md) - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + GIT_TOKEN=${{ secrets.GIT_TOKEN }} GITHUB_REPOSITORY=${{ github.repository }} PR_NUMBER=$(jq -r .number < "$GITHUB_EVENT_PATH") @@ -271,7 +271,7 @@ jobs: json_payload=$(jq -n --arg message "$MESSAGE" '{"body": $message}') curl -s \ - -H "Authorization: token ${GITHUB_TOKEN}" \ + -H "Authorization: token ${GIT_TOKEN}" \ -H "Accept: application/vnd.github.v3+json" \ -d "$json_payload" \ "${URL}" @@ -340,7 +340,7 @@ jobs: # - name: Clone repo K8S # run: | # echo "IMAGE: ${{ env.IMAGE }}" - # git clone --depth 1 -b "$K8S_BRANCH" "https://$GITHUB_TOKEN@github.com/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution + # git clone --depth 1 -b "$K8S_BRANCH" "https://$GIT_TOKEN@github.com/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution - name: Login to Harbor uses: docker/login-action@v2 @@ -369,7 +369,7 @@ jobs: - name: SonarQube Coverage Report uses: sonarsource/sonarqube-scan-action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_TOKEN: ${{ secrets.GIT_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} with: