Skip to content

Commit 900394f

Browse files
Fix documentation lint and build token scope
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent faa72a1 commit 900394f

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/linters/.markdown-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ MD007:
1313
indent: 2 # Unordered list indentation
1414
MD013:
1515
line_length: 808 # Line length
16+
MD025: false # Allow front-matter title + visible H1 on docs pages
1617
MD026:
1718
punctuation: ".,;:!。,;:" # List of not allowed
1819
MD029: false # Ordered list item prefix

.github/workflows/Build-Module.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
app-id: ${{ secrets.GitHubAppClientId }}
5050
private-key: ${{ secrets.GitHubAppPrivateKey }}
5151
repositories: ${{ github.event.repository.name }}
52+
permission-metadata: read
5253

5354
- name: Build module
5455
uses: ./_wf/.github/actions/Build-PSModule

docs/content/guides/github-app-authentication.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Each job mints its own token with the repository that triggered the workflow:
4141
| Workflow | Requested repository permissions | GitHub operations |
4242
| --- | --- | --- |
4343
| Plan | `contents: read`, `pull-requests: write` | Read repository settings and version data, inspect pull-request files and labels, and write planning comments or labels. |
44-
| Build-Module | No explicit `permission-*` inputs | Read repository metadata while building the module manifest. |
44+
| Build-Module | `metadata: read` | Read repository metadata while building the module manifest. |
4545
| Publish-Module | `contents: write`, `pull-requests: write` | Create and upload releases, write pull-request comments, and clean up prereleases. |
4646

4747
The GitHub App installation must grant the permissions requested by each job. Keep the installation and token scope
@@ -68,6 +68,7 @@ The token action is pinned and exposes its output only to the steps that need Gi
6868
app-id: ${{ secrets.GitHubAppClientId }}
6969
private-key: ${{ secrets.GitHubAppPrivateKey }}
7070
repositories: ${{ github.event.repository.name }}
71+
permission-metadata: read
7172
7273
- name: Use the token
7374
env:

0 commit comments

Comments
 (0)