CURL fails on workflow but succeeds locally #27202
-
Hello! I’m trying to create a workflow that will trigger a Github Pages build daily for my personal blog. I have two triggers for the workflow:
For this, I have created a PAT (called My workflow file is the following:
Every time I trigger a manual build in actions UI against the However, if I run the exact same CURL command locally, replacing the Am I missing something in my workflow setup? Thanks in advance for any hint! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The documentation on token scopes says to use tokens with
|
Beta Was this translation helpful? Give feedback.
-
Thanks, but Bearer works just fine as well 🙂 Turns out the problem was a misunderstanding from my side: While PATs are created in the GH account context, they need to be added as a secret to the repository to be used on workflows. Adding a secret to the repo with the PAT secret solved the problem. Thanks! |
Beta Was this translation helpful? Give feedback.
Thanks, but Bearer works just fine as well 🙂
Turns out the problem was a misunderstanding from my side:
While PATs are created in the GH account context, they need to be added as a secret to the repository to be used on workflows.
Adding a secret to the repo with the PAT secret solved the problem.
Thanks!