Commit b96733c
workflows: swap softprops for gh CLI, add CloudFront reachability check, remove --acl
Three follow-up corrections to PR #17:
1. Remove `--acl public-read` from `aws s3 cp`.
The bucket has `disable_confusing_acls = true` (BucketOwnerEnforced), which
disables ACLs entirely. `BlockPublicAcls` + `IgnorePublicAcls` provide
additional coverage. The ACL flag is silently ignored. The IAM role
(`S3_ACCESS_MODE.PUT`) also doesn't grant `PutObjectAcl`. Reads go via
CloudFront OAC, not public-S3.
2. 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 (single-maintainer) supply-chain dependency, and behaves
equivalently with `--clobber`.
3. Add a post-upload CloudFront reachability check (`curl -fI`).
If the CloudFront path_patterns allowlist doesn't include the key's prefix,
Mac Bazel builds will silently 403. Failing the workflow here surfaces the
issue before consumers hit it.
S3 path stays `node-gyp/*` (this PR no longer changes it — see codez PR #390222
which adds `node-gyp/*` to CloudFront's path_patterns in system_packages.tf).
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 b96733c
2 files changed
Lines changed: 39 additions & 8 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 | + | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
101 | 113 | | |
102 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
103 | 133 | | |
104 | 134 | | |
105 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 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