Skip to content

Commit

Permalink
set default permission for action jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmanke committed Apr 4, 2024
1 parent 548f7fe commit 2621fad
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/render-qmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ on:
push:
branches: ["thomas"]

permissions:
contents: read
pages: write
id-token: write

defaults:
run:
shell: bash -l {0}

jobs:

build:
name: Conda Tests
name: Build Pages
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
shell: bash -l {0}
# container: node:latest

steps:
Expand Down Expand Up @@ -75,14 +79,12 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

# the following does not work; micromamba env and installs seem not to be recoginized
# the following does not work; micromamba env and installs seem not to be recognized
# see also: https://github.com/quarto-dev/quarto-actions/issues/47
# - name: Set up Quarto
# uses: quarto-dev/quarto-actions/setup@v2
Expand Down

0 comments on commit 2621fad

Please sign in to comment.