Skip to content

Conversation

@rene-bos
Copy link
Contributor

@rene-bos rene-bos commented Feb 7, 2023

Running Rector on forks gives this the error message below:

Invalid workflow file: .github/workflows/rector.yaml#L14
The workflow is not valid. .github/workflows/rector.yaml (Line: 14, Col: 27): Invalid secret, ACCESS_TOKEN is not defined in the referenced workflow.

Futhermore the contributer gets an (email) notification about a failed PR check: [driftingly/rector-laravel] PR run failed at startup: Rector - Fix `check-active-classes` and re-enable code_analysis workflow (dd5284a). This is very anoying. Other Rector extensions just exclude Rector for forks, thats why I just grabbed the one from rector-doctrine. All rector-* packages now removed rector.yaml in fafor of the Rector job code_analisis.yaml, so I made that change here also.

@rene-bos
Copy link
Contributor Author

rene-bos commented Feb 7, 2023

This is the last one (for now 😉).

@driftingly driftingly merged commit 9771886 into driftingly:main Feb 7, 2023
@driftingly
Copy link
Owner

Looks good! Thanks @rene-bos

@rene-bos rene-bos deleted the dont-run-rector-on-forks branch February 8, 2023 07:56
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

Successfully merging this pull request may close these issues.

2 participants