Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions in this workflow must be: within a repository owned by ORGANIZATION. #547

Closed
philjn opened this issue Oct 6, 2023 · 0 comments · Fixed by #549
Closed

Actions in this workflow must be: within a repository owned by ORGANIZATION. #547

philjn opened this issue Oct 6, 2023 · 0 comments · Fixed by #549
Labels
bug docs updates to the docs site

Comments

@philjn
Copy link
Contributor

philjn commented Oct 6, 2023

Describe the bug
The recent addition of #536, resulted in the GitHub Action workflow Sync workflow: https://github.com/philosowaffle/peloton-to-garmin/blob/8321bdecf99589bd47e1594f8f48cb72ecc35a5c/.github/workflows/sync_peloton_to_garmin.yml to fail with an error like:

actions/upload-artifact@v3 is not allowed to be used in philjn/peloton-to-garmin. Actions in this workflow must be: within a repository owned by philjn.

To Reproduce
Steps to reproduce the behavior:

  1. Follow steps in Wiki to create your own GitHub action: https://philosowaffle.github.io/peloton-to-garmin/install/github-action.html
  2. Run "Sync workflow" action in your GitHub actions section
  3. Observe above failure output

Expected behavior
Sync workflow runs without issues as per the Wiki documentation: https://philosowaffle.github.io/peloton-to-garmin/install/github-action.html

Root cause
The cause of the failure is because the "actions/upload-artifact@v3" action is from the GitHub organization and if you have not allowed actions from the GitHub organization the call to the action will fail.

This was determined by looking at other similar issues:

Solution:
Enable Actions authored by GitHub (This setting is also where you can allow other ORGANIZATION actions as well)

  1. Goto your forked repro of peloton-to-garmin
  2. Goto Settings->Actions->General
  3. Under Action Permissions choose the 4th option titled: "Allow ", and select non-, actions and reusable workflows.
  4. Check the checkbox to "Allow actions created by GitHub"

Image of setting:
image

Suggestion:

  1. Update Wiki documentation https://philosowaffle.github.io/peloton-to-garmin/install/github-action.html with steps to allow GitHub authored Actions to execute.
@philjn philjn added the bug label Oct 6, 2023
@philosowaffle philosowaffle added the docs updates to the docs site label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug docs updates to the docs site
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants