Open davereid opened 3 months ago
See https://github.com/Lullabot/drainpipe/actions/runs/8160501550/job/22938209686#step:15:45
2024-03-21T14:56:46.9335131Z ##[group]Run export GITHUB_DEPLOYMENT=$(curl -f -X POST \ 2024-03-21T14:56:46.9335639Z [36;1mexport GITHUB_DEPLOYMENT=$(curl -f -X POST \[0m 2024-03-21T14:56:46.9336173Z [36;1m https://api.github.com/repos/$GITHUB_REPOSITORY/deployments \[0m 2024-03-21T14:56:46.9336934Z [36;1m -H 'Accept: application/vnd.github.v3+json' \[0m 2024-03-21T14:56:46.9337659Z [36;1m -H "Authorization: token ***" \[0m 2024-03-21T14:56:46.9338826Z [36;1m -d "{\"ref\": \"$DRAINPIPE_SHA\", \"auto_merge\": false, \"environment\": \"pantheon-pr-$DRAINPIPE_PR_NUMBER\", \"transient_environment\": true, \"required_contexts\": [], \"description\": \"Pantheon Multidev for Pull Request #$DRAINPIPE_PR_NUMBER\"}" \[0m 2024-03-21T14:56:46.9339949Z [36;1m)[0m 2024-03-21T14:56:46.9340321Z [36;1mexport GITHUB_DEPLOYMENT_ID=$(echo $GITHUB_DEPLOYMENT | jq '.id')[0m 2024-03-21T14:56:46.9340926Z [36;1mecho "GITHUB_DEPLOYMENT_ID=$GITHUB_DEPLOYMENT_ID" >> $GITHUB_ENV[0m 2024-03-21T14:56:46.9341698Z [36;1mecho "Created GitHub Deployment ID $GITHUB_DEPLOYMENT_ID"[0m 2024-03-21T14:56:46.9342425Z [36;1mif [ -z "$GITHUB_DEPLOYMENT_ID" ] || [ "$GITHUB_DEPLOYMENT_ID" = "null" ]; then echo $GITHUB_DEPLOYMENT && exit 1; fi[0m 2024-03-21T14:56:46.9343987Z [36;1mcurl -f -H "Authorization: token ***" -X POST -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/$GITHUB_REPOSITORY/deployments/$GITHUB_DEPLOYMENT_ID/statuses -d '{"state":"in_progress"}'[0m 2024-03-21T14:56:46.9369352Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-03-21T14:56:46.9369750Z env: 2024-03-21T14:56:46.9369965Z DRAINPIPE_PR_NUMBER: 458 2024-03-21T14:56:46.9370321Z DRAINPIPE_SHA: 52539f89f9bd37b8a255ab139cdc3babd90bea61 2024-03-21T14:56:46.9370701Z DRAINPIPE_DDEV: true 2024-03-21T14:56:46.9370951Z ##[endgroup] 2024-03-21T14:56:46.9476077Z % Total % Received % Xferd Average Speed Time Time Time Current 2024-03-21T14:56:46.9481963Z Dload Upload Total Spent Left Speed 2024-03-21T14:56:46.9482894Z 2024-03-21T14:56:47.1757421Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2024-03-21T14:56:47.1758655Z 58 377 0 0 100 220 0 964 --:--:-- --:--:-- --:--:-- 964 2024-03-21T14:56:47.1760004Z curl: (22) The requested URL returned error: 403 2024-03-21T14:56:47.1997267Z Created GitHub Deployment ID 2024-03-21T14:56:47.1997574Z 2024-03-21T14:56:47.2011563Z ##[error]Process completed with exit code 1.
Is this because the PR is coming from a fork? I'm guessing so since GITHUB_TOKEN doesn't have access to creating deployments on the parent repository.
See https://github.com/Lullabot/drainpipe/actions/runs/8160501550/job/22938209686#step:15:45