Skip to content

Commit

Permalink
Move permissions to correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
K0IN committed Jul 22, 2023
1 parent 5e292ac commit b97fe4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
build-and-deploy-worker:
environment: deploy
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -31,7 +35,7 @@ jobs:
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: notify-demo
project: "notify-demo"
entrypoint: deploy.ts
root: ./deploy
import-map: deno.json
5 changes: 1 addition & 4 deletions .github/workflows/deploy-deno-deploy-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
build-and-push-image:
name: Build ${{ matrix.platform }} docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

strategy:
matrix:
Expand Down

0 comments on commit b97fe4b

Please sign in to comment.