feat!: replace FORGEJO_TOKEN with PERSONAL_ACCESS TOKEN

This commit is contained in:
Michael Sasser 2024-11-20 04:36:51 +01:00
parent 34bd5d35c3
commit 896d1528ae
Signed by: michael
GPG key ID: 5F653AC7631F5151

View file

@ -22,7 +22,10 @@ inputs:
default: "false"
required: false
FORGEJO_TOKEN:
#
# Secrets
#
PERSONAL_ACCESS_TOKEN:
description: A personal access token that allows this workflow to pull the playbook repository.
required: true
@ -57,14 +60,14 @@ runs:
ref: refs/heads/main
repository: "${{ inputs.playbook_repository }}"
path: /workspace/${{ gitea.repository }}
token: ${{ inputs.FORGEJO_TOKEN }}
token: ${{ inputs.PERSONAL_ACCESS_TOKEN }}
# Clone Role
- name: Checkout this Ansible Role
uses: https://git.michaelsasser.org/actions/checkout@v4
with:
path: "/workspace/${{ gitea.repository }}/plays/roles/michaelsasser.${{ steps.get-role-info.outputs.role_name }}"
token: ${{ inputs.FORGEJO_TOKEN }}
token: ${{ inputs.PERSONAL_ACCESS_TOKEN }}
# Setup SSH
- name: Setup SSH