diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 0b9e76f..1593e78 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - token: ${{ secrets.PAT }} + token: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }} ref: ${{ github.ref_name }} - name: Setup Node.js 20.x @@ -42,8 +42,8 @@ jobs: - uses: chainguard-dev/actions/setup-gitsign@main - name: Commit Dist run: | - git config --global user.email "roxbot@stackrox.com" - git config --global user.name "Robot Rox" + git config --global user.email ${{ secrets.RHACS_BOT_GITHUB_EMAIL }} + git config --global user.name ${{ secrets.RHACS_BOT_GITHUB_USERNAME }} git add dist git commit -m "chore: Update dist" || echo "No changes to commit." git push origin diff --git a/.github/workflows/update-main-version.yml b/.github/workflows/update-main-version.yml index f93e9a7..fda51fa 100644 --- a/.github/workflows/update-main-version.yml +++ b/.github/workflows/update-main-version.yml @@ -23,14 +23,15 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Required since we need to ensure all tags are contained within the checkout. + token: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }} - name: Setup GitSign uses: chainguard-dev/actions/setup-gitsign@main - name: Move main version tag run: | - git config --global user.email "roxbot@stackrox.com" - git config --global user.name "Robot Rox" + git config --global user.email ${{ secrets.RHACS_BOT_GITHUB_EMAIL }} + git config --global user.name ${{ secrets.RHACS_BOT_GITHUB_USERNAME }} # Move the main version tag to the target tag. git tag -s -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }} git push origin ${{ github.event.inputs.main_version }} --force --tags