Skip to content

Fix perms - #39

Merged
JarbasAl merged 2 commits into
devfrom
fix_perms
Mar 10, 2026
Merged

JarbasAl merged 2 commits into
devfrom
fix_perms

Conversation

@JarbasAl

@JarbasAl JarbasAl commented Mar 10, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow configurations with enhanced permissions for secure artifact publishing and improved job execution conditions.

JarbasAl and others added 2 commits March 10, 2026 16:08
PR merge already ran build_tests and coverage on the same code.
Build tests gate now only applies to workflow_dispatch reruns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reusable workflows cannot escalate permissions beyond what the caller
grants. The caller must explicitly declare id-token: write for OIDC
token retrieval to work in the publish_pypi job.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Mar 10, 2026 •

Copy link
Copy Markdown

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f87f8c76-6870-4d40-90f9-9c98cc37bc0e

📥 Commits

Reviewing files that changed from the base of the PR and between 7583676 and 3454768.

📒 Files selected for processing (2)
  • .github/workflows/publish_stable.yml
  • .github/workflows/release_workflow.yml

📝 Walkthrough

Walkthrough

This pull request adds permission declarations to two GitHub Actions workflows and refines job triggering conditions in the release workflow. The publish_stable.yml workflow receives a new permissions block, while release_workflow.yml adds permissions and modifies when the build_tests job runs.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Permissions
.github/workflows/publish_stable.yml, .github/workflows/release_workflow.yml
Added top-level permissions blocks granting contents: write and id-token: write access. In release_workflow.yml, modified build_tests job to trigger only on workflow_dispatch and updated publish_alpha job condition to check for combined success/skipped status of build_tests alongside PR-merged or workflow_dispatch gating.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Whiskers twitch with CI/CD delight,
Permissions granted, workflows run right,
Tokens and contents, now authorized,
Automation gates, perfectly sized! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Fix perms' is vague and does not provide specific context about which permissions are being fixed or why. Use a more descriptive title such as 'Add workflow permissions for GitHub Actions' or 'Add contents and id-token permissions to workflows' to clarify the purpose.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix_perms

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Mar 10, 2026 •

Copy link
Copy Markdown
Contributor

A new update is available for your PR checks! 📥

I've aggregated the results of the automated checks for this PR below.

🏷️ Release Preview

The release banner is being designed! 🎨

Current: 0.9.2a1 → Next: 0.9.2a2

Signal Value
Label (none)
PR title Fix perms
Bump alpha

⚠️ No conventional commit prefix — alpha-only bump.
Suggested: fix: update the thing or feat: update the thing


🚀 Release Channel Compatibility

Predicted next version: 0.9.2a2

Channel Status Note Current Constraint
Stable ⚪ Not in channel -
Testing ✅ Compatible ovoscope>=0.7.2,<1.0.0
Alpha ✅ Compatible ovoscope>=0.7.2

⚖️ License Check

Are we all good on the legal front? Let's find out! 📑

✅ No license violations found (60 packages).

License distribution: 14× MIT, 14× MIT License, 9× Apache Software License, 4× Apache-2.0, 4× BSD-3-Clause, 2× ISC License (ISCL), 2× PSF-2.0, 2× Python Software Foundation License, +8 more

Full breakdown — 60 packages
Package Version License URL
annotated-doc 0.0.4 MIT link
annotated-types 0.7.0 MIT License link
anyio 4.12.1 MIT link
audioop-lts 0.2.2 PSF-2.0 link
build 1.4.0 MIT link
certifi 2026.2.25 Mozilla Public License 2.0 (MPL 2.0) link
charset-normalizer 3.4.5 MIT link
click 8.3.1 BSD-3-Clause link
combo_lock 0.3.0 Apache Software License link
fastapi 0.135.1 MIT link
filelock 3.25.1 MIT link
h11 0.16.0 MIT License link
idna 3.11 BSD-3-Clause link
importlib_metadata 8.7.1 Apache-2.0 link
json-database 0.10.1 MIT link
kthread 0.2.3 MIT License link
langcodes 3.5.1 MIT License link
markdown-it-py 4.0.0 MIT License link
mdurl 0.1.2 MIT License link
memory-tempfile 2.2.3 MIT License link
ovos-config 2.1.1 Apache-2.0 link
ovos-number-parser 0.5.1 Apache Software License link
ovos-plugin-manager 2.2.0 Apache-2.0 link
ovos-pydantic-models 0.1.1 Apache-2.0 link
ovos-solver-yes-no-plugin 0.2.8 MIT link
ovos_bus_client 1.5.0 Apache Software License link
ovos_core 2.1.3a2 Apache Software License link
ovos_utils 0.8.5a2 Apache link
ovos_workshop 8.0.0 apache-2.0 link
ovoscope 0.9.2a1 Apache Software License link
packaging 26.0 Apache-2.0 OR BSD-2-Clause link
padacioso 1.0.0 apache-2.0 link
pexpect 4.9.0 ISC License (ISCL) link
ptyprocess 0.7.0 ISC License (ISCL) link
pydantic 2.12.5 MIT link
pydantic_core 2.41.5 MIT link
pyee 12.1.1 MIT License link
Pygments 2.19.2 BSD License link
pyproject_hooks 1.2.0 MIT License link
python-dateutil 2.9.0.post0 Apache Software License; BSD License link
PyYAML 6.0.3 MIT License link
quebra-frases 0.3.7 Apache Software License link
RapidFuzz 3.14.3 MIT link
regex 2026.2.28 Apache-2.0 AND CNRI-Python link
requests 2.32.5 Apache Software License link
rich 13.9.4 MIT License link
rich-click 1.9.7 MIT License

Copyright (c) 2022 Phil Ewels

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| link |
| simplematch | 1.4 | MIT License | link |
| six | 1.17.0 | MIT License | link |
| standard-aifc | 3.13.0 | Python Software Foundation License | link |
| standard-chunk | 3.13.0 | Python Software Foundation License | link |
| starlette | 0.52.1 | BSD-3-Clause | link |
| typing-inspection | 0.4.2 | MIT | link |
| typing_extensions | 4.15.0 | PSF-2.0 | link |
| unicode-rbnf | 2.4.0 | MIT License | |
| urllib3 | 2.6.3 | MIT | link |
| uvicorn | 0.41.0 | BSD-3-Clause | link |
| watchdog | 2.3.1 | Apache Software License | link |
| websocket-client | 1.9.0 | Apache Software License | link |
| zipp | 3.23.0 | MIT | link |

Policy: Apache 2.0 (universal donor). StrongCopyleft / NetworkCopyleft / WeakCopyleft / Other / Error categories fail. MPL allowed.

🔒 Security (pip-audit)

Checking for any potential privacy concerns. 🕶️

✅ No known vulnerabilities found (68 packages scanned).

📊 Coverage

Tracking the evolution of our test suite. 🐒

⚠️ 65.8% total coverage

Per-file coverage (4 files)
File Coverage Missing lines
ovoscope/version.py 0.0% 5
ovoscope/pydantic_helpers.py 37.1% 22
ovoscope/pytest_plugin.py 64.3% 5
ovoscope/__init__.py 68.7% 144

Full report: download the coverage-report artifact.

🔨 Build Tests

Ensuring the gears are properly lubricated. 💧

✅ All versions pass

Python Build Install Tests
3.10 ✅ ✅ ✅
3.11 ✅ ✅ ✅
3.12 ✅ ✅ ✅
3.13 ✅ ✅ ✅
3.14 ✅ ✅ ✅

📋 Repo Health

Your repository is in great shape! ✅

✅ All required files present.

Latest Version: 0.9.2a1

✅ ovoscope/version.py — Version file
✅ README.md — README
✅ LICENSE — License file
✅ pyproject.toml — pyproject.toml
✅ CHANGELOG.md — Changelog
⚠️ requirements.txt — Requirements
✅ ovoscope/version.py has valid version block markers


Keeping things running like clockwork 🕰️

@JarbasAl
JarbasAl merged commit 17cc60c into dev Mar 10, 2026
15 of 16 checks passed
@JarbasAl
JarbasAl deleted the fix_perms branch March 10, 2026 16:13
JarbasAl added a commit that referenced this pull request Mar 10, 2026
* Increment Version to 0.9.1

* Increment Version to 0.9.2a1

* Update Changelog

* Fix perms (#39)

* fix: only run build_tests in release workflow on manual dispatch

PR merge already ran build_tests and coverage on the same code.
Build tests gate now only applies to workflow_dispatch reruns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add id-token:write permission for PyPI trusted publishing

Reusable workflows cannot escalate permissions beyond what the caller
grants. The caller must explicitly declare id-token: write for OIDC
token retrieval to work in the publish_pypi job.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Tests (#40)

* fix: simplify coverage_pages permissions for gh-pages branch deploy

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add pull-requests:write for build-tests post_build_report job

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Increment Version to 0.9.2a2

* Update Changelog

* fix perms

* Increment Version to 0.9.2a3

* fix: drop id-token:write from stable release caller

PYPI_TOKEN is sufficient; OIDC not needed or supported.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Increment Version to 0.9.2a4

* Update Changelog

---------

Co-authored-by: JarbasAl <33701864+JarbasAl@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: miro <jarbasai@mailfence.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant