hardn-cli
Run Hardn's read-only security scans of sites you own from your terminal or CI, and fail the build when a scan finds problems at or above the severity you choose. Python 3.9+, no dependencies.
Install
pip install hardn-cli # or: pipx install hardn-cli
hardn --version
Use
Create an API key in Hardn (API keys → New key) and keep it as a secret.
export HARDN_API_KEY=hk_live_…
hardn targets # your sites and their ids (tgt_…)
hardn scan --target tgt_… --fail-on high # start a scan, wait, exit 1 on high or critical issues
hardn scan --target tgt_… --sarif hardn.sarif # also write a SARIF report (GitHub code scanning)
hardn verify --target tgt_… # re-check ownership verification
Options: --fail-on none|critical|high|medium|low|info (default high), --type public|deep,
--timeout <seconds> (default 900), --format text|json, --quiet, --api-url (or HARDN_API_URL; default
https://api.hardn.si).
Exit codes: 0 passed, 1 issues at or above --fail-on (for verify: not verified), 2 the scan didn't
complete or timed out, or a usage or API error.
In GitHub Actions
- name: Hardn scan
env:
HARDN_API_KEY: ${{ secrets.HARDN_API_KEY }}
run: |
pip install hardn-cli
hardn scan --target tgt_… --fail-on high --sarif hardn.sarif
Hardn only scans sites whose ownership you have verified. Docs: https://hardn.si/developers
Metadata
Release files for hardn-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hardn_cli-0.1.0.tar.gz | 5.9 kB | Without provenance | Details for hardn_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hardn_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hardn_cli-0.1.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / hardn_cli-0.1.0.tar.gz
| Download URL | hardn_cli-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10bda7a604d7478f00c7e53607b3a1ebd29111305f5a1bc9d5bc335bfc2699b8
|
|
BLAKE2b-256 checksum How to use checksums |
6892e31a70515991644b725bc566c3fca0a6947d6f3e1a8405800015b446712b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / hardn_cli-0.1.0-py3-none-any.whl
| Download URL | hardn_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
025d1d139d7a6956bc058db344fd5a64782751dc0e195eabf3f68d9dd426e08f
|
|
BLAKE2b-256 checksum How to use checksums |
7f66eb277336256e77d7c883debc43a852a026098d8e375f375889f103ae3fc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for hardn-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.