Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"

# Configure authentication (token in memory only)
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${GITHUB_TOKEN} | base64)"
# Use `base64 -w0`: plain `base64` wraps lines at 76 chars, and the
# current GITHUB_TOKEN is long enough that wrapping inserts newlines
# into the header value, which GitHub rejects (HTTP/2 stream reset).
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(printf 'x-access-token:%s' "${GITHUB_TOKEN}" | base64 -w0)"

# Deploy using ghp-import (includes dotfiles like .asf.yaml and .nojekyll)
echo "Creating asf-staging branch..."
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/promote-staging-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ jobs:

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${GITHUB_TOKEN} | base64)"
# Use `base64 -w0`: plain `base64` wraps lines at 76 chars, and the
# current GITHUB_TOKEN is long enough that wrapping inserts newlines
# into the header value, which GitHub rejects (HTTP/2 stream reset).
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(printf 'x-access-token:%s' "${GITHUB_TOKEN}" | base64 -w0)"

# Push asf-staging to asf-site (replace production with staging content)
git push https://github.com/${GITHUB_REPOSITORY}.git origin/asf-staging:asf-site --force
Expand Down
Loading