From fc2ce0c44b473bf78113427e890ec4e647fc1cd6 Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Fri, 18 Oct 2024 13:56:20 +0530 Subject: [PATCH] Update connector workflow templates to use ballerina-bot token as the packagePAT --- .github/workflows/build-connector-template.yml | 4 ++-- .../build-with-bal-test-graalvm-connector-template.yml | 4 ++-- .github/workflows/daily-build-connector-template.yml | 8 ++++---- .github/workflows/pr-build-connector-template.yml | 4 ++-- .github/workflows/release-package-connector-template.yml | 4 ++-- .github/workflows/trivy-scan-template.yml | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-connector-template.yml b/.github/workflows/build-connector-template.yml index cb6eab72..b893f675 100644 --- a/.github/workflows/build-connector-template.yml +++ b/.github/workflows/build-connector-template.yml @@ -67,8 +67,8 @@ jobs: - name: Build the Package env: - packageUser: ${{ github.actor }} - packagePAT: ${{ secrets.GITHUB_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | ./gradlew build -x test ${{ inputs.additional-build-flags }} ./gradlew test ${{ inputs.additional-test-flags }} diff --git a/.github/workflows/build-with-bal-test-graalvm-connector-template.yml b/.github/workflows/build-with-bal-test-graalvm-connector-template.yml index 32223b69..22fe0e46 100644 --- a/.github/workflows/build-with-bal-test-graalvm-connector-template.yml +++ b/.github/workflows/build-with-bal-test-graalvm-connector-template.yml @@ -47,8 +47,8 @@ jobs: - name: Build Package run: ./gradlew build ${{ inputs.additional-build-flags }} env: - packageUser: ${{ github.actor }} - packagePAT: ${{ secrets.GITHUB_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} - name: Remove Target Directory run: sudo rm -rf ballerina/target diff --git a/.github/workflows/daily-build-connector-template.yml b/.github/workflows/daily-build-connector-template.yml index 23c6c8cc..ee0fa89a 100644 --- a/.github/workflows/daily-build-connector-template.yml +++ b/.github/workflows/daily-build-connector-template.yml @@ -43,15 +43,15 @@ jobs: - name: Build the Package env: - packageUser: ${{ github.actor }} - packagePAT: ${{ secrets.GITHUB_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | ./gradlew build -x test ${{ inputs.additional-build-flags }} -PbuildUsingDocker=nightly - name: Test the Package env: - packageUser: ${{ github.actor }} - packagePAT: ${{ secrets.GITHUB_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | ./gradlew test ${{ inputs.additional-test-flags }} -PbuildUsingDocker=nightly diff --git a/.github/workflows/pr-build-connector-template.yml b/.github/workflows/pr-build-connector-template.yml index 12e08c76..95cf2f63 100644 --- a/.github/workflows/pr-build-connector-template.yml +++ b/.github/workflows/pr-build-connector-template.yml @@ -50,8 +50,8 @@ jobs: - name: Build the Package env: - packageUser: ${{ github.actor }} - packagePAT: ${{ secrets.GITHUB_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | ./gradlew build -x test ${{ inputs.additional-build-flags }} ./gradlew test ${{ inputs.additional-test-flags }} diff --git a/.github/workflows/release-package-connector-template.yml b/.github/workflows/release-package-connector-template.yml index 000f9191..eea81b6e 100644 --- a/.github/workflows/release-package-connector-template.yml +++ b/.github/workflows/release-package-connector-template.yml @@ -57,8 +57,8 @@ jobs: - name: Build without Tests env: - packageUser: ${{ github.actor }} - packagePAT: ${{ secrets.GITHUB_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | git config --global user.name ${{ secrets.BALLERINA_BOT_USERNAME }} git config --global user.email ${{ secrets.BALLERINA_BOT_EMAIL }} diff --git a/.github/workflows/trivy-scan-template.yml b/.github/workflows/trivy-scan-template.yml index d849fc39..e08aaf99 100644 --- a/.github/workflows/trivy-scan-template.yml +++ b/.github/workflows/trivy-scan-template.yml @@ -35,8 +35,8 @@ jobs: - name: Build with Gradle env: - packageUser: ${{ github.actor }} - packagePAT: ${{ secrets.GITHUB_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} run: ./gradlew build -x test ${{ inputs.additional-build-flags }} - name: Create lib directory if not exists