Skip to content

Commit cb99aef

Browse files
committed
Fix permissions
1 parent 3aac97c commit cb99aef

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed
+2-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
name: Publish docs
22
description: Publishes the documentation to GitHub Pages with mkdocs gh-deploy.
3-
inputs:
4-
github-token:
5-
description: "GitHub token for API access"
6-
required: true
73

84
runs:
95
using: "composite"
106
steps:
117
- shell: sh
12-
env:
13-
GH_TOKEN: ${{ inputs.github-token }}
148
run: |
159
pip install mkdocs
10+
- shell: sh
11+
run: |
1612
mkdocs gh-deploy

.github/workflows/validate_vmatch.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,17 @@ jobs:
1111
vmatch:
1212
runs-on: ubuntu-24.04
1313
steps:
14+
- name: Generate docs token
15+
uses: actions/create-github-app-token@v1
16+
id: generate-token
17+
with:
18+
app-id: ${{ secrets.AUTOMATION_APP_ID }}
19+
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
20+
1421
- name: Checkout
1522
uses: actions/checkout@v4
23+
with:
24+
token: ${{ steps.generate-token.outputs.token }}
1625

1726
- name: golangci-lint
1827
uses: anttiharju/actions/lint-go@v0
@@ -23,14 +32,5 @@ jobs:
2332
name: go build
2433
uses: ./.github/actions/build
2534

26-
- name: Generate docs token
27-
uses: actions/create-github-app-token@v1
28-
id: generate-token
29-
with:
30-
app-id: ${{ secrets.AUTOMATION_APP_ID }}
31-
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
32-
repositories: vmatch
3335
- name: Publish docs
3436
uses: ./.github/actions/publish-docs
35-
with:
36-
github-token: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)