rwilliams
rwilliams

Reputation: 91

error parsing called workflow in github . workflow was not found

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

Answers (5)

Chinedu Odo
Chinedu Odo

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

TheUltimateGuide
TheUltimateGuide

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

riQQ
riQQ

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

  1. On GitHub, navigate to the main page of the private repository.

  2. Under your repository name, click Settings.

  3. In the left sidebar, click Actions, then click General.

  4. 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.
  5. Click Save to apply the settings.

source


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.

source

Upvotes: 1

Evan
Evan

Reputation: 1332

According to GitHub document: doc

You can visit repository Setting -> Actions -> Access: Choose "Accessible from repositories in the organization"

Upvotes: 15

Hilmi cihan
Hilmi cihan

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

Related Questions