Commit 22846ef
Fix node-gyp S3 path, swap softprops for gh CLI, add CloudFront reachability check
Several follow-up corrections to PR #17:
1. Move S3 upload from `node-gyp/*` to `node/gyp/*`.
The `asana-oss-cache` bucket is BlockPublicAccess-enabled, so Mac dev laptops
read via CloudFront (asana-oss-cache.asana.biz, per the Bazel URL rewriter in
tools/bzl/config/external_bazel_downloader.cfg). CloudFront only serves paths
listed in `path_patterns` (terraform/general/buildinfra/system_packages.tf),
which includes `node/*` but NOT `node-gyp/*`. The previous path would have
403'd on every Mac Bazel build. Nesting under `node/*` reuses the existing
allowlisted prefix.
2. Remove `--acl public-read` from `aws s3 cp`.
The bucket has `BlockPublicAcls: true` AND `IgnorePublicAcls: true` — the
ACL is silently dropped. The IAM role (S3_ACCESS_MODE.PUT) doesn't grant
PutObjectAcl either. Reads go via CloudFront anyway, so the flag is misleading
dead code.
3. Replace `softprops/action-gh-release` with GitHub's first-party `gh` CLI.
`gh release upload` is pre-installed on GitHub-hosted runners, removes a
third-party supply-chain dependency, and behaves equivalently (with --clobber).
4. Add a post-upload CloudFront reachability check (`curl -fI`).
If the S3 key prefix ever falls outside CloudFront's path_patterns, Mac builds
will silently 403. Failing the workflow here surfaces the issue before
consumers hit it.
5. Update stage_for_s3.bash's echo text to match the new S3 path and clarify that
workflow_dispatch from main is required.
Action pinning: tag-pinned per codez convention (100% of codez workflows use
tags, not SHAs).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 104256b commit 22846ef
2 files changed
Lines changed: 40 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
81 | 80 | | |
82 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
97 | 108 | | |
98 | 109 | | |
99 | 110 | | |
100 | | - | |
| 111 | + | |
101 | 112 | | |
102 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
103 | 132 | | |
104 | 133 | | |
105 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments