Commit 35f35c3
authored
feat(security): replace curl with gh release download and add attestation verification (#109)
- Replace unauthenticated curl download with gh release download
authenticated via GH_TOKEN; avoids anonymous API rate limits on
shared runners
- Add gh attestation verify before tar extraction to validate SLSA v1
provenance published by block/goose since v1.28.0
- Add set -euo pipefail to install step; removes need for per-command
error checks and empty-file guard
- Replace mktemp file with mktemp -d directory; update trap accordingly
- Add GH_TOKEN env to install step (scoped, not global)
Aligns with clouatre-labs/aptu action.yml patterns.
Closes #5994
Signed-off-by: Hugues Clouâtre <hugues@linux.com>1 parent f89364c commit 35f35c3
1 file changed
Lines changed: 15 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
| 100 | + | |
98 | 101 | | |
99 | | - | |
100 | 102 | | |
101 | | - | |
102 | | - | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
109 | | - | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
144 | 129 | | |
145 | 130 | | |
146 | 131 | | |
| |||
0 commit comments