Skip to content

examples/quarto-publish.yml: use inline # omit when deploy: false permission hints #61

@d-morrison

Description

@d-morrison

Follow-up from PR #38 review; attempted in the unmerged PR #42, so it never landed.

Problem

examples/quarto-publish.yml documents which permissions: can be dropped for a build-only (deploy: false) preview via a block comment rather than per-line hints:

# examples/quarto-publish.yml (current)
      # ... (deploy: false) can drop these two and keep just contents: read.
      pages: write
      id-token: write

A caller copying the stub can easily miss the block comment and leave pages: write / id-token: write in place when they don't need them.

Proposed fix

Move the hint inline so it's impossible to skip:

      pages: write     # omit when deploy: false
      id-token: write  # omit when deploy: false

Minor / cosmetic doc nit. Same origin as the abandoned PR #42; companion to the substantive output-dir follow-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions