-
Notifications
You must be signed in to change notification settings - Fork 2
add docs folder which is copy that points at gh-pages URls, and setup CI build that updates them (will also add to PRs) #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mshafer-NI
merged 14 commits into
main
from
users/mshafer/dev/support_for_https_loading
Jun 26, 2026
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d67b1ae
add docs folder which is copy that points at gh-pages URls, and setup…
mshafer-NI 8dfc1dd
Apply suggestions from code review
mshafer-NI 5a984cb
split checking vs publishing to reduce permissions
mshafer-NI e966306
revert this again
mshafer-NI 54aefe0
single source sinc-docs.sh
mshafer-NI 312b3c1
limit concurrency
mshafer-NI 371fc89
add zizmor, CI build, and re-arrange
mshafer-NI 1ca78c2
allow the PR to read the repo
mshafer-NI 7e4f381
include read permission in the pass down
mshafer-NI 04e9e5b
upgrade and hash-pin the checkout action
mshafer-NI 3fc4079
more cleanup
mshafer-NI 618b393
Apply suggestions from code review
mshafer-NI 8980d13
try a minimal permissions set
mshafer-NI d3b6aff
Merge branch 'users/mshafer/dev/support_for_https_loading' of https:/…
mshafer-NI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - 'releases/**' | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| check_actions: | ||
| name: Check actions | ||
| uses: ./.github/workflows/check_actions.yml | ||
| permissions: | ||
| security-events: write | ||
|
mshafer-NI marked this conversation as resolved.
|
||
| check_docs: | ||
| name: Check docs | ||
| uses: ./.github/workflows/check_docs.yml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: PR | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - 'releases/**' | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| run_ci: | ||
| name: Run CI | ||
| uses: ./.github/workflows/CI.yml | ||
| permissions: | ||
| security-events: write | ||
|
mshafer-NI marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Check actions | ||
|
|
||
| on: | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| zizmor: | ||
| name: Run zizmor | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| security-events: write | ||
|
mshafer-NI marked this conversation as resolved.
mshafer-NI marked this conversation as resolved.
|
||
| steps: | ||
| - name: Check out repo | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Run zizmor | ||
| uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Sync docs config mirror | ||
|
|
||
| on: | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| validate-docs: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Generate docs mirror | ||
| shell: bash | ||
| run: | | ||
| bash .github/workflows/sync-docs.sh | ||
|
|
||
| - name: Verify docs mirror is clean | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| if grep -R "local>ni/python-renovate-config" docs; then | ||
| echo "Found unresolved local preset references in docs/" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| if ! git diff --quiet -- docs; then | ||
| echo "docs/ is out of sync with the source configs; regenerate it (by running .github/workflows/sync-docs.sh) and commit the updated docs/ output." >&2 | ||
| git --no-pager diff -- docs >&2 | ||
| exit 1 | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| docs_dir="docs" | ||
| pages_base_url="https://ni.github.io/python-renovate-config" | ||
|
|
||
| mkdir -p "${docs_dir}/presets/group" "${docs_dir}/presets/packages" | ||
| find "${docs_dir}" -type f -name '*.json' -delete | ||
|
|
||
| cp default.json recommended.json "${docs_dir}/" | ||
| cp presets/*.json "${docs_dir}/presets/" | ||
| cp presets/group/*.json "${docs_dir}/presets/group/" | ||
| cp presets/packages/*.json "${docs_dir}/presets/packages/" | ||
|
|
||
| find "${docs_dir}" -type f -name '*.json' -print0 | xargs -0 sed -E -i \ | ||
| -e "s|local>ni/python-renovate-config:([A-Za-z0-9_-]+)|${pages_base_url}/\\1.json|g" \ | ||
| -e "s|local>ni/python-renovate-config//([A-Za-z0-9_./-]+)|${pages_base_url}/\\1.json|g" | ||
|
mshafer-NI marked this conversation as resolved.
|
||
|
mshafer-NI marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Generated Config Mirror | ||
|
|
||
| `.github/workflows/sync-docs.sh` populates this directory by copying the config files and rewriting internal `local>` references to the GitHub Pages URLs rooted at: | ||
|
|
||
| `https://ni.github.io/python-renovate-config/` | ||
|
|
||
| Use `docs/recommended.json` from this directory when a Renovate host cannot resolve GitHub-local | ||
| preset references directly. The JSON files in this directory are generated and should be updated using the script rather than edited by hand. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ | ||
| "config:recommended" | ||
| ], | ||
| "branchPrefix": "users/renovate/", | ||
| "timezone": "US/Central" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "description": "Update Git submodules.", | ||
| "git-submodules": { | ||
| "enabled": true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "description": "Raise PR when vulnerability alerts are detected (including OSV alerts).", | ||
| "extends": [ | ||
| ":enableVulnerabilityAlerts" | ||
| ], | ||
| "osvVulnerabilityAlerts": true | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "description": "Group GitHub Actions together.", | ||
| "packageRules": [ | ||
| { | ||
| "matchManagers": [ | ||
| "github-actions" | ||
| ], | ||
| "groupName": "GitHub Actions", | ||
| "groupSlug": "github-actions" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "description": "Group Python packages together.", | ||
| "packageRules": [ | ||
| { | ||
| "matchCategories": [ | ||
| "python" | ||
| ], | ||
| "matchUpdateTypes": [ | ||
| "major", | ||
| "minor", | ||
| "patch", | ||
| "rollback", | ||
| "replacement" | ||
| ], | ||
| "groupName": "Python packages", | ||
| "groupSlug": "python" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "description": "All NI Python packages.", | ||
| "packageRules": [ | ||
| { | ||
| "matchDatasources": [ | ||
| "pypi" | ||
| ], | ||
| "matchPackageNames": [ | ||
| "ni**" | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ | ||
| "https://ni.github.io/python-renovate-config/default.json", | ||
|
mshafer-NI marked this conversation as resolved.
|
||
| "https://ni.github.io/python-renovate-config/presets/enableVulnerabilityAlerts.json", | ||
| "helpers:pinGitHubActionDigestsToSemver", | ||
| // Run lock file maintenance monthly in order to upgrade indirect | ||
| // dependencies that are not covered by the weekly update, such as | ||
| // `certifi` or `typing_extensions`. | ||
| ":maintainLockFilesMonthly", | ||
| ":rebaseStalePrs" | ||
| ], | ||
| // Do not upgrade to new package versions as soon as they are released. If | ||
| // an upstream package is compromised, delaying makes it more likely that | ||
| // the compromised version will be detected and pulled from the repository | ||
| // before we try to upgrade. This should not affect security vulnerability | ||
| // alerts. | ||
| "minimumReleaseAge": "14 days", | ||
| "packageRules": [ | ||
| { | ||
| "description": "Update GitHub Actions on Sundays.", | ||
| "extends": [ | ||
| "https://ni.github.io/python-renovate-config/presets/group/githubActions.json" | ||
| ], | ||
| "schedule": ["* * * * 0"] | ||
| }, | ||
| { | ||
| "description": "Update Python packages on Sundays.", | ||
| "extends": [ | ||
| "https://ni.github.io/python-renovate-config/presets/group/python.json" | ||
| ], | ||
| "schedule": ["* * * * 0"] | ||
| }, | ||
| { | ||
| "description": "Set minimumReleaseAge to 1 day for ni/python-actions.", | ||
| "matchPackageNames": [ | ||
| "ni/python-actions" | ||
| ], | ||
| "minimumReleaseAge": "1 day" | ||
| }, | ||
| { | ||
| "description": "Set minimumReleaseAge to 1 day for NI Python packages.", | ||
| "extends": [ | ||
| "https://ni.github.io/python-renovate-config/presets/packages/niPython.json" | ||
| ], | ||
| "minimumReleaseAge": "1 day" | ||
| } | ||
| ] | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.