diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 00000000..9bb178e4 --- /dev/null +++ b/.github/workflows/audit.yml @@ -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/gh-action-pip-audit@v1.1.0 + with: + inputs: requirements.txt docs/requirements.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 13b94a78..96698cd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to the Zowe Client Python SDK will be documented in this file. +## `1.0.0-dev21` + +### Bug Fixes + +- Fixed Core SDK package referencing a non-existent version of Secrets SDK. + ## `1.0.0-dev20` ### Enhancements diff --git a/scripts/license_header.py b/scripts/license_header.py index 9384aa7d..27541bf5 100644 --- a/scripts/license_header.py +++ b/scripts/license_header.py @@ -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}") diff --git a/src/_version.py b/src/_version.py index f2d92d6e..5889f191 100644 --- a/src/_version.py +++ b/src/_version.py @@ -1 +1 @@ -__version__ = "1.0.0.dev20" +__version__ = "1.0.0.dev21" diff --git a/src/core/setup.py b/src/core/setup.py index b92b2a5b..b607e996 100644 --- a/src/core/setup.py +++ b/src/core/setup.py @@ -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.*"]), ) diff --git a/src/secrets/Cargo.lock b/src/secrets/Cargo.lock index e936cc6b..6f1119f5 100644 --- a/src/secrets/Cargo.lock +++ b/src/secrets/Cargo.lock @@ -241,7 +241,7 @@ checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8" [[package]] name = "keyring" -version = "1.0.0-dev20" +version = "1.0.0-dev21" dependencies = [ "pyo3", "secrets_core", diff --git a/src/secrets/Cargo.toml b/src/secrets/Cargo.toml index 7d00b636..b5e9fc2d 100644 --- a/src/secrets/Cargo.toml +++ b/src/secrets/Cargo.toml @@ -2,7 +2,7 @@ name = "keyring" readme = "README.md" repository = "https://github.com/zowe/zowe-client-python-sdk" -version = "1.0.0-dev20" +version = "1.0.0-dev21" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html