Workflows running on pull_request_target events run in the context of the base of the pull request, meaning that the Docker image is built from the base and not from the merge commit. This is not what we want. Revert to pull_request instead.
For the linter action that we used, this means that the workflow will fail when running from fork. There is a related issue on the Action's repository, but it seems to get very little activity. Let's switch to something that looks better maintained, and that does not have issues with running from forks.
Let's address the reports raised by the new linter, Hadolint.
Workflows running on
pull_request_target
events run in the context of the base of the pull request, meaning that the Docker image is built from the base and not from the merge commit. This is not what we want. Revert topull_request
instead.For the linter action that we used, this means that the workflow will fail when running from fork. There is a related issue on the Action's repository, but it seems to get very little activity. Let's switch to something that looks better maintained, and that does not have issues with running from forks.
Let's address the reports raised by the new linter, Hadolint.