@biffo/cli 0.41.7 → 0.41.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -161,6 +161,19 @@ jobs:
|
|
|
161
161
|
with:
|
|
162
162
|
role-to-assume: ${{ secrets.SIBLING_OIDC_ROLE_ARN }}
|
|
163
163
|
aws-region: ${{ vars.AWS_REGION || 'us-east-1' }}
|
|
164
|
+
- name: Register Lambda secret env values as log masks
|
|
165
|
+
# Belt-and-braces for #334. The primary fix suppresses update-function-code
|
|
166
|
+
# output, but if any *future* step accidentally echoes the function config,
|
|
167
|
+
# this mask redacts the DB credential. The value is never printed: it is
|
|
168
|
+
# scoped by --query to a single variable, captured, and piped only into
|
|
169
|
+
# ::add-mask::. Best-effort — it must never fail the deploy.
|
|
170
|
+
run: |
|
|
171
|
+
val=$(aws lambda get-function-configuration \
|
|
172
|
+
--function-name "${{ vars.LAMBDA_FUNCTION_NAME }}" \
|
|
173
|
+
--query "Environment.Variables.DATABASE_URL" --output text 2>/dev/null || true)
|
|
174
|
+
if [ -n "$val" ] && [ "$val" != "None" ]; then
|
|
175
|
+
echo "::add-mask::$val"
|
|
176
|
+
fi
|
|
164
177
|
- name: Sync frontend to S3
|
|
165
178
|
env:
|
|
166
179
|
PATH_PREFIX: ${{ vars.PATH_PREFIX }}
|
|
@@ -205,9 +218,15 @@ jobs:
|
|
|
205
218
|
uv pip install -r requirements.txt --target package/
|
|
206
219
|
cp -r src/ package/
|
|
207
220
|
cd package && zip -r ../lambda.zip .
|
|
221
|
+
# --output text --query 'LastUpdateStatus' suppresses the CLI's default
|
|
222
|
+
# output — the entire function configuration as JSON, including
|
|
223
|
+
# Environment.Variables (e.g. DATABASE_URL) in plaintext, which would
|
|
224
|
+
# leak into the Actions log (#334). The response is unused; the wait
|
|
225
|
+
# below gates progress.
|
|
208
226
|
aws lambda update-function-code \
|
|
209
227
|
--function-name "${{ vars.LAMBDA_FUNCTION_NAME }}" \
|
|
210
|
-
--zip-file fileb://../lambda.zip
|
|
228
|
+
--zip-file fileb://../lambda.zip \
|
|
229
|
+
--output text --query 'LastUpdateStatus'
|
|
211
230
|
- name: Smoke test the deployed Lambda
|
|
212
231
|
run: |
|
|
213
232
|
# Deploy succeeding just means the zip uploaded — it says nothing
|
package/core.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.41.
|
|
1
|
+
0.41.8
|