I have a query, how can I use a personal access token for continuous integration with github actions
name: Integration
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: '${{ secrets.SECRET_GITHUB }}'
- uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /home/....
git fetch --all
git reset --hard origin/master
I have the following, but it doesn't update the repository on my production server. I would like to be able to use the username and the acces token as variable without globally setting the credentials on my server. it's possible?