libbpf / bpftool

Automated upstream mirror for bpftool stand-alone build.
Other
406 stars 72 forks source link

ci: Use Hadolint linter for Dockerfile, revert workflow to pull_request #72

Closed qmonnet closed 1 year ago

qmonnet commented 1 year ago

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.