ci: GH-620 centralized composite action and configuration to test GHA runner labels against self-hosted runners #300
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to: camunda/team-infrastructure#620.
Create a composite action to validate and lint repository workflows using actionlint.
The composite action configuration includes self-hosted runner labels supported by infrastructure team and available in Camunda
Some possible questions:
❓ Why using all the actionlint checks instead of using only the
runners-label
check💬 From what I've seen in actionlint usage documentation, there's no way to limit the checks to only specific one
❓ What's the rationale behind the way actionlint is downloaded? Why not use asdf or similar approached?
💬 That's the way actionlint documentation suggest to download actionlint executable
❓ Why using a composite action instead of a reusable workflow?
💬 I was thinking of using a reusable workflow at the very beginning to solve the chicken-egg issue of running the composite action on an invalid runner. Reusable workflow would solve this indeed, but having a reusable workflow only for a single job (actionlint) seemed to me a bit too much. Also, most (if not all) the shared workflows in this repository are composite actions. Therefore I've decided to use a composite action right now, leaving the door open for a future improvement