[Bug] Reusable workflow for pull requests giving parse error #10679
-
Reusable workflows when triggered are failing with this parse error
This issue is generally observed for pull_request based triggers. Any help in this is seriously appreciated. We have been struggling to update our workflows because of this |
Beta Was this translation helpful? Give feedback.
Replies: 30 comments 23 replies
-
@tarunwadhwa13 may be something for actions/runner? |
Beta Was this translation helpful? Give feedback.
-
I have experienced the same issue when I've used a relative path for calling my reusable workflow (i.e. For now I've gone with: |
Beta Was this translation helpful? Give feedback.
-
I am also facing this problem. Is there any timeline for a fix? |
Beta Was this translation helpful? Give feedback.
-
Others are facing this problem as well: https://github.community/t/ref-head-in-reusable-workflows/203690/64 |
Beta Was this translation helpful? Give feedback.
-
We are also facing this problem. Is input available from GitHub team? |
Beta Was this translation helpful? Give feedback.
-
Same problem with |
Beta Was this translation helpful? Give feedback.
-
I am also facing this problem. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone - thanks for reporting this, the engineering team is investigating. |
Beta Was this translation helpful? Give feedback.
-
Have just decided to try reusable workflows for the first time in my life and they are unfortunately broken. Is it a regression or they never worked for PRs? Hope there will be automated tests to track the regression of this issue again whet it will be fixed. |
Beta Was this translation helpful? Give feedback.
-
We are facing the same issue on our pipelines on |
Beta Was this translation helpful? Give feedback.
-
Hi all, apologies for the inconvenience caused. We have rolled out the fix now. We starting seeing this issue when workflows started referencing reusable workflows locally and this issue was coming for pull_request events. Thanks for the patience and please let us know if you still face issues. |
Beta Was this translation helpful? Give feedback.
-
I get the above error when trying to run a reusable workflow (using a relative path) triggered by the Here's the relevant parts of the initiating workflow file ( name: Dev release
on:
pull_request_review:
types: [submitted, edited]
issue_comment:
types: [created, edited]
jobs:
release:
name: Create and release image
uses: ./.github/workflows/create-image-and-release-to-env.yaml Important to know is that there's no error when the reusable workflow is ran triggered by the I have verified that the reusable workflow file is part of the PR branch that the event got triggered for, which should be enough since according to the docs Could you please look into this @ajaykn? Thanks! Update: I opened a separate ticket for this #14306 |
Beta Was this translation helpful? Give feedback.
-
I'm getting an error where it is requesting "required key: runs-on" for jobs that are calling re-usable workflows. |
Beta Was this translation helpful? Give feedback.
-
I'm getting similar |
Beta Was this translation helpful? Give feedback.
-
I receive:
when running a local reusable workflow w/ ---
name: PR Notifications
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
branches:
- main
pull_request_review_comment:
types:
- created
- edited
jobs:
identity:
uses: ./.github/workflows/identify-apps.yml **Note that this works just fine on a |
Beta Was this translation helpful? Give feedback.
-
Same issue again. It happens only when using the "local" syntax |
Beta Was this translation helpful? Give feedback.
-
This is also happening again to us again on a push to the main branch:
|
Beta Was this translation helpful? Give feedback.
-
We are issuing the same problem right now on:
push:
branches: ["master"]
tags: ["v*"]
pull_request:
branches: ["master"]
deploy:
needs: ["test", "build", "check_deploy"]
if: "${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}"
uses: "{organization}/{repo}/.github/workflows/cd.yml@master"
with:
stage: "guess_from_github_ref" |
Beta Was this translation helpful? Give feedback.
-
I've been getting the Is this a known bug? And it is random as well... Retriggering the workflow run sometimes fixes it. Using the |
Beta Was this translation helpful? Give feedback.
-
Hi there! We experience this issue also since about 2 days now. Something must have changed regarding reusable workflows. When the main workflow uses reusable workflows, we receive the error message randomly for some workflow runs (and in it randomly for some reusable workflow linkages). |
Beta Was this translation helpful? Give feedback.
-
Hello Community, For those who have been experiencing this issue the last two days, here's the reply I received from GitHub Enterprise Support:
|
Beta Was this translation helpful? Give feedback.
-
And now :
|
Beta Was this translation helpful? Give feedback.
-
Hi guys! I have a similar error on the pull request opened event.
And integration in the repository:
In most cases, it runs successfully, but from time to time, it fails with an error:
It fails in 1 case in 10 that's pretty annoying for users. I can't see ways to add retries on our side, so I'm asking for help to look at these errors from your side. |
Beta Was this translation helpful? Give feedback.
-
Got the same issue with on |
Beta Was this translation helpful? Give feedback.
-
actual response: parsing response error in actions: |
Beta Was this translation helpful? Give feedback.
-
This issue also occurs if the dispatch has no change than that which was already deployed. FYI. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. I tried also to make a step to checkout the repo so it will be able to find the files. But seems not to be working. |
Beta Was this translation helpful? Give feedback.
-
This issue is not resolved! At least not resolved for |
Beta Was this translation helpful? Give feedback.
-
Same error here with |
Beta Was this translation helpful? Give feedback.
-
I have the same error on |
Beta Was this translation helpful? Give feedback.
Hi all, apologies for the inconvenience caused. We have rolled out the fix now.
We starting seeing this issue when workflows started referencing reusable workflows locally and this issue was coming for pull_request events.
Thanks for the patience and please let us know if you still face issues.