Skip to content

Commit 00de1b9

Browse files
committed
ci: add permissions to publish script
1 parent d2c8c1a commit 00de1b9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- run: make package-amd
2929
- run: make package-arm
3030
# Release the lambda extension and update the github release
31-
- run: deno run --allow-env --allow-read --allow-run scripts/publish.ts --name=pyroscope-lambda-extension --log-level=DEBUG --table-file=release.tmp.md --dry-run=false
31+
- run: deno run --allow-write --allow-env --allow-read --allow-run scripts/publish.ts --name=pyroscope-lambda-extension --log-level=DEBUG --table-file=release.tmp.md --dry-run=false
3232
env:
3333
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
3434
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

scripts/publish.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ if (import.meta.main) {
244244
if (y.dryRun) {
245245
console.log(releaseTable);
246246
} else {
247+
log.debug(releaseTable);
247248
await Deno.writeTextFile(y.tableFile, releaseTable);
248249
}
249250
}

0 commit comments

Comments
 (0)