debian-forge-composer/.github/workflows
Ondřej Budai 8c4689f082 workflows: mark the working directory safe for git
Github actions have a peculiar behaviour: The "job root" directory is owned
by user with ID 1001 whereas many containers (like the Fedora one) run as root
by default. This causes git to freak out because repositories owned by
different users aren't considered safe anymore and must be explicitly allow-
listed.

This becomes a problem when we switch to Go 1.18 because it stamps build with
Git information which fails because the repository technically isn't safe.

Let's fix this by marking the repository as a safe one.

Note that the actions/checkout action has a set-safe-directory feature, but
this one is not permanent. After the action is done, the setting is removed.
See https://github.com/actions/checkout/pull/762

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2023-01-06 11:34:50 +01:00
..
coverity_scan.yml github: fix the coverity scan action 2022-07-18 11:19:21 +02:00
create-tag.yml Adjust release schedule timer 2022-06-14 11:21:52 +02:00
release.yml release-action: Send notification to our Slack channel 2021-12-13 09:48:34 +01:00
tests.yml workflows: mark the working directory safe for git 2023-01-06 11:34:50 +01:00
trigger-gitlab.yml workflows/trigger-gitlab: run Gitlab CI in new image-builder project 2022-04-14 21:45:07 +02:00