Skip to content

Commit 3aae0c6

Browse files
authored
chore: update gh workflow permissions (#268)
1 parent 81ec76d commit 3aae0c6

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/header-checker-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ignoreFiles:
1616
- ".github/release-trigger.yml"
1717
- ".github/header-checker-lint.yml"
1818
- ".github/sync-repo-settings.yaml"
19+
- ".github/workflows/docs.yml"
1920
- ".kokoro/**"
2021
- "**/requirements.txt"
2122
- "**/requirements*.txt"

.github/workflows/docs.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
name: docs
6+
permissions:
7+
contents: read # This applies to all jobs
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
14+
- name: Setup Python
15+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
16+
with:
17+
python-version: "3.10"
18+
- name: Install nox
19+
run: |
20+
python -m pip install --upgrade setuptools pip wheel
21+
python -m pip install nox
22+
- name: Run docs
23+
run: |
24+
nox -s docs
25+
docfx:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
30+
- name: Setup Python
31+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
32+
with:
33+
python-version: "3.10"
34+
- name: Install nox
35+
run: |
36+
python -m pip install --upgrade setuptools pip wheel
37+
python -m pip install nox
38+
- name: Run docfx
39+
run: |
40+
nox -s docfx

0 commit comments

Comments
 (0)