diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index bf9f05125a..75ac39cc8c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -67,7 +67,7 @@ jobs: run: | export CURLOPTS="--fail -sq -m 30 -b /tmp/cookiejar" # Make an initial request which will get us a session id, and grab the csrf token from it - CSRFTOKEN=$(curl $CURLOPTS -c $COOKIEJAR "http://localhost/domjudge/login" 2>/dev/null | sed -n 's/.*_csrf_token.*value="\(.*\)".*/\1/p') + CSRFTOKEN=$(curl $CURLOPTS -c $COOKIEJAR "http://localhost/domjudge/login" | sed -n 's/.*_csrf_token.*value="\(.*\)".*/\1/p') # Make a second request with our session + csrf token to actually log in curl $CURLOPTS -c $COOKIEJAR -F "_csrf_token=$CSRFTOKEN" -F "_username=admin" -F "_password=password" "http://localhost/domjudge/login" # Send a general clarification to later test if we see the event.