Skip to content

Conversation

mattjohnsonpint
Copy link
Contributor

I struggled a bit with setting the path to a config file until I realized that the path needs to be a full absolute path on disk when Github Actions runs it. Using the github.workspace context variable seems to be the easiest solution.

Just thought I would document it to save someone else from the frustration.

@ldez ldez added the documentation Improvements or additions to documentation label Apr 4, 2025
@ldez ldez self-requested a review April 4, 2025 00:23
@ldez ldez changed the title docs: use github workspace in config path docs: add note about github.workspace Apr 4, 2025
@ldez
Copy link
Member

ldez commented Apr 4, 2025

The path doesn't need to be an absolute path, it depends on your project structure.

@ldez ldez added the enhancement New feature or request label Apr 4, 2025
@ldez ldez merged commit f51fbec into golangci:main Apr 4, 2025
@mattjohnsonpint mattjohnsonpint deleted the readme branch April 4, 2025 03:33
@mattjohnsonpint
Copy link
Contributor Author

The path doesn't need to be an absolute path, it depends on your project structure.

Hmmm... I tried a relative path but couldn't get it to work. Anyway, this does.

adityamaru pushed a commit to useblacksmith/golangci-lint-action that referenced this pull request May 30, 2025
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
eratio08 pushed a commit to sportalliance/golangci-lint-action that referenced this pull request Sep 9, 2025
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
eratio08 added a commit to sportalliance/golangci-lint-action that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

2 participants