Authentication issues when using Re-usable workflow #155532
Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Here is my Current workflow step names and its timings that it takes. I am using actions/create-github-app-token@v1 as recommended.
2 . Set up Node.js --- > 1 second
Here is my code for Step #14 and #15
name: Re-generate the Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
cloudops-centralized-automation-framework
name: Create or Update File AND Push Changes AND Create Pull Request AND Merge Pull Request AND Delete Branch
run: |
timestamp=$(date +%d-%m-%Y-%H-%M-%S)
folder_path="Patching_reports/test/$timestamp"
mkdir -p $folder_path
mv /tmp/*.csv $folder_path/
git config --global user.name "automation-app[bot]"
git config --global user.email "automation-app[bot]@users.noreply.github.com"
git add $folder_path
git commit -m "suhas-Add patching reports generated on $timestamp"
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push https://x-access-token:${{ steps.app-token.outputs.token
}}@github.com/xxxxxxx/cloudops-centralized-automation-framework.git || echo "Nothing to push
But, The last step is failing with the below error:
Error:
remote: Invalid username or password.
fatal: Authentication failed for '[https://github.com/xxxxxxx/cloudops-centralized-automation-framework.git/'
Nothing to push
##[debug]Finishing: Create or Update File AND Push Changes AND Create Pull Request AND Merge Pull Request AND Delete Branch
Does any came across such issues? Please suggest?
please note - The above code is of the parent /called workflow. This is being invoked from child repo.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions