authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-03 14:55:09-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-03 14:55:21-05:00
log96984e3033a084eac887a02e7c86d3b58c75b7f0
tree607b69380c5f9671e02ab979f48f2e3cad5524ec
parent629b91da610e2567c5ce4df097e062c0b605ebc0
signaturelock-open Commit is signed but in an unrecognized format.

ci: avoid leaking oauth access token


6 files changed, 14 insertions(+), 4 deletions(-)

.builds/freebsd.yml+1-1
......@@ -7,7 +7,7 @@ packages:
77 - jq
88secrets:
99 - 6c60aaee-92e7-4e7d-812c-114817689b4d
10 - 2cd8c203-ba06-4504-be49-1e2b9b71efdd
10 - dd0bd962-7664-4d3e-b0f3-41c9ee96b8b8
1111sources:
1212 - https://github.com/ziglang/zig
1313tasks:
ci/azure/on_master_success+3-1
......@@ -1,6 +1,8 @@
11#!/bin/sh
22
3set -x
3# We do not set -x because this would leak the oauth access token.
4set +x
5
46set -e
57
68sudo apt-get update -y
ci/azure/pipelines.yml+1-1
......@@ -44,7 +44,7 @@ jobs:
4444 - script: ci/azure/windows_script.bat
4545 name: main
4646 displayName: 'Build and test'
47- job: UpdateDownloadPage
47- job: OnMasterSuccess
4848 dependsOn:
4949 - BuildMacOS
5050 - BuildLinux
ci/drone/linux_script+3
......@@ -61,6 +61,9 @@ if [ -z "$DRONE_PULL_REQUEST" ]; then
6161 s3cmd put -P --add-header="Cache-Control: max-age=0, must-revalidate" "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE"
6262 s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$TRIPLEARCH-linux-$VERSION.json"
6363 if [ "$GITBRANCH" = "master" ]; then
64 # avoid leaking oauth token
65 set +x
66
6467 cd "$BUILDDIR"
6568 ./ci/srht/on_master_success "$VERSION" "$SRHT_OAUTH_TOKEN"
6669 fi
ci/srht/freebsd_script+3
......@@ -88,6 +88,9 @@ if [ -f ~/.s3cfg ]; then
8888 s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/x86_64-freebsd-$VERSION.json"
8989
9090 if [ "$GITBRANCH" = "master" ]; then
91 # avoid leaking oauth token
92 set +x
93
9194 OAUTH_TOKEN="$(cat ~/.oauth_token)"
9295 cd "$ZIGDIR"
9396 ./ci/srht/on_master_success "$VERSION" "$OAUTH_TOKEN"
ci/srht/on_master_success+3-1
......@@ -6,7 +6,9 @@
66# * jq
77# * cat
88
9set -x
9# We do not set -x because this would leak the oauth access token.
10set +x
11
1012set -e
1113
1214VERSION="$1"