Skip to content

Commit

Permalink
Add explicit permissions for PR flow
Browse files Browse the repository at this point in the history
  • Loading branch information
msfstef committed Aug 14, 2024
1 parent adf47dd commit e30a4fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
pull-requests: write
issues: write

on:
workflow_dispatch:
inputs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build_wasm_postgres.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build WASM PGlite files

permissions:
pull-requests: write
issues: write

on:
workflow_call:

Expand Down Expand Up @@ -33,7 +37,7 @@ jobs:
/tmp/sdk/postgres-*.tar.gz
postgres
postgresql-*
key: build-cache-${{ hashFiles('cibuild/**', 'patches/*.c', 'patches/postgresql-*') }}
key: build-cache-${{ hashFiles('cibuild.sh', '.github/workflows/build_wasm_postgres.yml', 'package.json', 'cibuild/**', 'patches/*.c', 'patches/**/*.diff') }}

- name: Install python-wasm-sdk for emsdk/wasi+prebuilts
if: steps.cache-restore.outputs.cache-hit != 'true'
Expand Down

0 comments on commit e30a4fa

Please sign in to comment.