Skip to content

CI workflow cleanup and plugin maintenance#41

Merged
Oddly merged 2 commits intomainfrom
fix/ci-workflow-cleanup
Mar 4, 2026
Merged

CI workflow cleanup and plugin maintenance#41
Oddly merged 2 commits intomainfrom
fix/ci-workflow-cleanup

Conversation

@Oddly
Copy link
Copy Markdown
Owner

@Oddly Oddly commented Mar 1, 2026

The KICS workflow SARIF upload has been broken since #31 added permissions: contents: read without security-events: write. This went unnoticed because the upload only runs on push to main, not on PRs. Added the missing permission.

The upgrade test workflow was only triggered on push to main (too late to catch regressions) and ran weekly. Moved it to a daily schedule and dropped the push trigger since PRs never triggered it anyway.

Removed tests/unit/plugins/module_utils/test_api.py which imports a nonexistent plugins/module_utils/api.py. Fixed test_cert_info.py to not assert on date fields from the fixture cert that expires 2026-03-28. Updated plugins/modules/README.md tested versions to match current CI (cryptography 42-46, Python 3.11-3.12, ansible-core 2.18-2.20).

Partial fix for #38

@Oddly Oddly force-pushed the fix/ci-workflow-cleanup branch 10 times, most recently from 69aa731 to 44c2a66 Compare March 4, 2026 15:09
Oddly added 2 commits March 4, 2026 20:06
Added security-events: write to kics.yml permissions so the SARIF
upload step can actually push results to GitHub code scanning. This
broke silently after #31 added permissions: contents: read.

Moved the upgrade test from weekly-on-Sunday plus push-to-main to a
daily schedule. Running on push was too late to catch regressions since
PRs never trigger these tests, and weekly was too infrequent.

Removed tests/unit/plugins/module_utils/test_api.py which imports
plugins/module_utils/api.py — a module that doesn't exist in the repo.
The test was never run by CI anyway.

Fixed test_cert_info.py to skip date field assertions since the fixture
P12 cert has a hardcoded expiry of 2026-03-28 that would cause the
test to fail once the cert expires.

Updated plugins/modules/README.md tested versions to match current CI
reality (cryptography 42-46, Python 3.11-3.12, ansible-core 2.18-2.20).
@Oddly Oddly force-pushed the fix/ci-workflow-cleanup branch from 44c2a66 to 79e9995 Compare March 4, 2026 19:06
@Oddly Oddly merged commit 5c68e82 into main Mar 4, 2026
20 of 23 checks passed
@Oddly Oddly deleted the fix/ci-workflow-cleanup branch March 4, 2026 19:11
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