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

Dealing with projects with .github/actions/workflow.yml #3

Open
kaji-ryoji opened this issue Jan 22, 2022 · 2 comments
Open

Dealing with projects with .github/actions/workflow.yml #3

kaji-ryoji opened this issue Jan 22, 2022 · 2 comments

Comments

@kaji-ryoji
Copy link

The default GITHUB_TOKEN secret does not allow touching files within .github/actions, any way to get around it?

@amadigan
Copy link
Contributor

Sorry for the long delay, I’m not sure I understand. Do the permissions associated with the token really affect which files can be modified? Can you link to the documentation of this or provide an error message?

Note that mirroring github actions will have some limitations in any case: while all branches from the source repo can be mirrored, the default branch on the GH repo won’t be a mirror of a branch from the source repo.

@rchauvin-ora
Copy link

rchauvin-ora commented Jun 4, 2024

Hi @amadigan

It looks like the GITHUB_TOKEN has no permission to update/create files in the .github directory when mirroring. Here is an example of the error message:

! [remote rejected] main -> main (refusing to allow a GitHub App to create or update workflow .github/workflows/bazel-noenv.yaml without workflows permission)

It is probably required to use a PAT token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants