1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-01 14:56:30 +00:00
gitea/modules
Giteabot e0a9a921af
Support GITEA_I_AM_BEING_UNSAFE_RUNNING_AS_ROOT env () ()
Backport  by @wolfogre

I was trying to run unit tests for Gitea on act runner, by using `make
test`.

It failed with log:

```
2024/03/14 03:09:26 ...s/setting/setting.go:180:loadRunModeFrom() [F] Gitea is not supposed to be run as root. Sorry. If you need to use privileged TCP ports please instead use setcap and the `cap_net_bind_service` permission
```

So it will be convenient to skip by setting environment, since it's OK
to use root user in job containers.

It's not a bug, but I want to backport it to v1.21 since it doesn't
break anything.

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-03-14 10:02:37 +00:00
..
actions Set pre-step status to skipped if job is skipped () () 2024-03-01 14:51:54 +01:00
activitypub
analyze
assetfs
auth
avatar
base
cache
charset
container
context Use strict protocol check when redirect () () 2024-03-07 03:53:33 +00:00
contexttest Make "/user/login" page redirect if the current user has signed in () () 2024-03-05 21:03:45 +08:00
csv
doctor
emoji
eventsource
generate
git Do not double close reader () () 2024-02-24 12:08:06 +00:00
gitgraph
graceful Avoid unexpected panic in graceful manager () () 2024-03-06 11:00:21 +00:00
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer Fix wrong line number in code search result () () 2024-03-06 10:05:41 +01:00
issue/template
json
label
lfs
log
markup Fix inconsistent rendering of block mathematical expressions () () 2024-03-11 10:10:07 +01:00
mcaptcha
metrics
migration
nosql
options
packages
paginator
pprof
private
process
proxy
proxyprotocol
public
queue Fix queue worker incorrectly stopped when there are still more items in the queue () () 2024-03-02 19:40:06 +00:00
recaptcha
references Fix issue link does not support quotes () () () 2024-03-02 19:37:45 +08:00
regexplru
repository
secret
session
setting Support GITEA_I_AM_BEING_UNSAFE_RUNNING_AS_ROOT env () () 2024-03-14 10:02:37 +00:00
sitemap
ssh
storage
structs
svg
sync
system
templates
test
testlogger
timeutil Fix date rendering by adding <gitea-absolute-date> () () 2024-03-13 01:04:58 +01:00
translation Add a trailing slash to dashboard links () () 2024-03-04 13:50:55 +08:00
turnstile
typesniffer
updatechecker
upload
uri
user
util
validation
web
webhook