]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
travis: protect the systemd organization on Fuzzit from forks 13484/head v243.1
authorEvgeny Vereshchagin <evvers@ya.ru>
Fri, 6 Sep 2019 01:44:52 +0000 (01:44 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Fri, 6 Sep 2019 02:07:37 +0000 (02:07 +0000)
Now that v243 is out, the script has been pulled by forks that are
activated on Travis CI. As a result, all those forks have started to send
their fuzzers to Fuzzit inadvertantly consuming our CPUs along the way.
Let's prevent this by bailing out early if the script is run outside of
the systemd repository.

travis-ci/managers/fuzzit.sh

index db2657b9c339999db7cb6a9532d67be25bc2b397..fef663f1887e1985a213ec391e84f2cdbc4d71b3 100755 (executable)
@@ -4,6 +4,10 @@ set -e
 set -x
 set -u
 
+# This should help to protect the systemd organization on Fuzzit from forks
+# that are activated on Travis CI.
+[[ "$TRAVIS_REPO_SLUG" = "systemd/systemd" ]] || exit 0
+
 REPO_ROOT=${REPO_ROOT:-$(pwd)}
 
 sudo bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse' >>/etc/apt/sources.list"
@@ -32,7 +36,7 @@ fi
 
 # Because we want Fuzzit to run on every pull-request and Travis/Azure doesnt support encrypted keys
 # on pull-request we use a write-only key which is ok for now. maybe there will be a better solution in the future
-FUZZIT_API_KEY=6a8445a23c4a8ef6743ddecf8ab368300976dae9313bbe54f1cbf30801773b2a3095d4c34daab8d308b6f2e8b254c90e
+FUZZIT_API_KEY=af6992074353998676713818cc6435ef4a750439932dab58b51e9354d6742c54d740a3cd9fc1fc001db82f51734a24bc
 FUZZIT_ADDITIONAL_FILES="./out/src/shared/libsystemd-shared-*.so"
 
 # ASan options are borrowed almost verbatim from OSS-Fuzz