Skip to content

Commit 10c9c28

Browse files
committed
Run repo-config v0.14.0 migration script
Updates auto-dependabot workflow and mkdocs.yml for mkdocstrings-python v2 compatibility. Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
1 parent a7280c2 commit 10c9c28

2 files changed

Lines changed: 7 additions & 22 deletions

File tree

.github/workflows/auto-dependabot.yaml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,21 @@
11
name: Auto-merge Dependabot PR
22

33
on:
4-
# XXX: !!! SECURITY WARNING !!!
5-
# pull_request_target has write access to the repo, and can read secrets. We
6-
# need to audit any external actions executed in this workflow and make sure no
7-
# checked out code is run (not even installing dependencies, as installing
8-
# dependencies usually can execute pre/post-install scripts). We should also
9-
# only use hashes to pick the action to execute (instead of tags or branches).
10-
# For more details read:
11-
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
12-
pull_request_target:
4+
pull_request:
135

146
permissions:
15-
contents: read
7+
contents: write
168
pull-requests: write
179

1810
jobs:
1911
auto-merge:
2012
if: github.actor == 'dependabot[bot]'
21-
runs-on: ubuntu-slim
13+
runs-on: ubuntu-latest
2214
steps:
23-
- name: Generate GitHub App token
24-
id: app-token
25-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
26-
with:
27-
app-id: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_ID }}
28-
private-key: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_PRIVATE_KEY }}
29-
3015
- name: Auto-merge Dependabot PR
31-
uses: frequenz-floss/dependabot-auto-approve@ada24053062e8199b27ab90890f6f21b48824864 # PR #3
16+
uses: frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1 # v1.3.2
3217
with:
33-
github-token: ${{ steps.app-token.outputs.token }}
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
3419
dependency-type: 'all'
3520
auto-merge: 'true'
3621
merge-method: 'merge'

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ plugins:
9999
default_handler: python
100100
handlers:
101101
python:
102+
paths: ["src"]
102103
options:
103-
paths: ["src"]
104104
docstring_section_style: spacy
105105
inherited_members: true
106106
merge_init_into_class: false
@@ -112,7 +112,7 @@ plugins:
112112
show_source: true
113113
show_symbol_type_toc: true
114114
signature_crossrefs: true
115-
import:
115+
inventories:
116116
# See https://mkdocstrings.github.io/python/usage/#import for details
117117
- https://docs.python.org/3/objects.inv
118118
- https://typing-extensions.readthedocs.io/en/stable/objects.inv

0 commit comments

Comments
 (0)