Reputation: 91
Trying to use pulumi preview with Github actions. The workflow file is giving me the below error.
Invalid workflow file: .github/workflows/pull_request.yml#L12
error parsing called workflow "peopleticker/ccc/.github/workflows/pull_request.yml@master": workflow was not found.
I'm using the workflow file below kindly check:
name: Call a reusable workflow
permissions:
id-token: write
contents: read
on:
pull_request:
jobs:
call-workflow-passing-data:
uses: peopleticker/ccc/.github/workflows/pull_request.yml@master
Upvotes: 8
Views: 13378
Reputation: 64
Go to the repository Setting -> Actions -> General: Scroll down to the bottom you'd see "Access", Choose "Accessible from repositories in the organization"
That did it for me. Credit:Evan
Upvotes: 1
Reputation: 353
If the repository that hosts the reusable workflow is a fork of another repository, make sure to enable GitHub Actions in the Actions tab of the repository
Upvotes: 1
Reputation: 12863
Actions and reusable workflows in your private repositories can be shared with other private repositories owned by the same user or organization.
Managing access for a private repository in an organization
On GitHub, navigate to the main page of the private repository.
Under your repository name, click Settings.
In the left sidebar, click Actions, then click General.
Under Access, choose one of the access settings:
- Not accessible - Workflows in other repositories cannot access this repository.
- Accessible from repositories in the 'ORGANIZATION NAME' organization - Workflows in other repositories that are part of the 'ORGANIZATION NAME' organization can access the actions and reusable workflows in this repository. Access is allowed only from private repositories.
Click Save to apply the settings.
Outdated, valid at the time the question was asked:
You can't use reusable workflows from other private repositories.
Reusable workflows stored within a private repository can only be used by workflows within the same repository.
Upvotes: 1
Reputation: 1332
According to GitHub document: doc
You can visit repository Setting -> Actions -> Access: Choose "Accessible from repositories in the organization"
Upvotes: 15
Reputation: 56
You can use private repo workflows but you have to give access on org level. Github give access that. Related documentaion: github-doc Example Video Explanation: video-expl
Upvotes: 1