Merge pull request 'Using a token for cloning actions.' (#79) from adrianSuSE/SUSE_ALP_Standard:token_for_action into 1.0

Reviewed-on: https://src.suse.de/products/SUSE_ALP_Standard/pulls/79
Reviewed-by: Ruediger Oertel <oertel@noreply.src.suse.de>
This commit is contained in:
Ruediger Oertel 2024-10-01 13:50:17 +02:00
commit 6366193d0b

View File

@ -13,7 +13,7 @@ jobs:
steps:
# We should provide go with our image already?
- name: Setup Go
uses: https://src.suse.de/actions/github-setup-go@v5
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/github-setup-go@v5
with:
go-version: '1.20'
# To be obsoleted
@ -23,16 +23,16 @@ jobs:
zypper in -y ca-certificates-suse ca-certificates-suse-ucs
# Generic action from GitHub to clone the product git repo
- name: Checkout product
uses: https://src.suse.de/actions/github-actions-checkout@v4
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/github-actions-checkout@v4
# Updating incident numbers
- name: Update all new _patchinfo files
uses: https://src.suse.de/actions/patchinfo-numbering-action@v0
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/patchinfo-numbering-action@v0
- name: Get last commit message
id: last-commit
run: |
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
- name: Commit changes back
uses: https://src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5
with:
commit_author: ${{ steps.last-commit.outputs.author }}
commit_message: "Update incident numbers"