Skip to content
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

Add pip audit workflow #324

Merged
merged 4 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Audit

on:
pull_request:
branches:
- main
schedule:
- cron: '0 10 * * *'

jobs:
audit:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check Vulnerabilities
uses: pypa/[email protected]
with:
inputs: requirements.txt docs/requirements.txt
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the Zowe Client Python SDK will be documented in this file.

## Recent Changes

### Bug Fixes

- Fixed Core SDK package referencing a non-existent version of Secrets SDK.

## `1.0.0-dev20`

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion scripts/license_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():
if "build" in root.split(os.path.sep):
continue
for file in files:
if file.endswith(".py") and file is not "_version.py":
if file.endswith(".py") and os.path.basename(file) != "_version.py":
file_path = os.path.join(root, file)
if not check_and_add_license_header(file_path, write_header):
print(f"License header missing in: {file_path}")
Expand Down
2 changes: 1 addition & 1 deletion src/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"requests~=2.32.0",
"urllib3~=1.26.18",
],
extras_require={"secrets": [resolve_sdk_dep("secrets", "~=" + __version__)]},
extras_require={"secrets": [resolve_sdk_dep("secrets", "~=1.0.0.dev")]},
packages=find_namespace_packages(include=["zowe.*"]),
)
Loading