{"id":25190165,"url":"https://github.com/keyfactor/public-nuget-packages","last_synced_at":"2026-04-15T20:07:26.542Z","repository":{"id":104073643,"uuid":"354118697","full_name":"Keyfactor/public-nuget-packages","owner":"Keyfactor","description":"Publicly available NuGet packages useful for building Keyfactor integrations.","archived":false,"fork":false,"pushed_at":"2026-03-09T20:48:15.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-03-09T20:57:01.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Keyfactor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-02T19:50:59.000Z","updated_at":"2026-03-09T20:48:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfb7f2dd-37aa-4545-a33d-1e67f4ea14c2","html_url":"https://github.com/Keyfactor/public-nuget-packages","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Keyfactor/public-nuget-packages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fpublic-nuget-packages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fpublic-nuget-packages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fpublic-nuget-packages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fpublic-nuget-packages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Keyfactor","download_url":"https://codeload.github.com/Keyfactor/public-nuget-packages/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fpublic-nuget-packages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T21:19:05.992Z","updated_at":"2026-03-09T22:08:16.998Z","avatar_url":"https://github.com/Keyfactor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# public-nuget-packages\n\nPublicly available NuGet packages useful for building Keyfactor integrations\n\nTo access these packages add `https://nuget.pkg.github.com/Keyfactor/index.json` as a NuGet package source in Visual Studio or other development tools.\n\nSome package availability changes from time to time. Please view the `CHANGELOG.md` for further details on changes to available libraries.\n\n## Adding a NuGet Package and/or Version\n\n### Via GitHub Actions\n\nNew versions of existing packages are registered automatically every Monday by the [Upgrade NuGet Packages](https://github.com/Keyfactor/public-nuget-packages/actions/workflows/upgrade-packages.yml) workflow, which opens a PR with any changes. Once merged, the daily [Sync NuGet Packages](https://github.com/Keyfactor/public-nuget-packages/actions/workflows/sync-nuget.yml) workflow pushes the new versions to the GitHub Package Registry.\n\nTo add a brand new package or manually trigger a sync:\n\n1. Add the package and version(s) to [`packages.yml`](./packages.yml).\n2. Trigger the [Sync NuGet Packages](https://github.com/Keyfactor/public-nuget-packages/actions/workflows/sync-nuget.yml) workflow.\n\nOnce complete, the package will be available in the Keyfactor Public GitHub Package Registry (GPR). The sync workflow runs automatically on a daily schedule and skips any versions already published.\n\n\u003e [!IMPORTANT]\n\u003e The package and version must already exist in the Azure DevOps feed before adding it to `packages.yml`:\n\u003e https://dev.azure.com/Keyfactor/Engineering/_artifacts/feed/KeyfactorPackages@Local\n\n### Running Locally\n\n**Prerequisites:** Python 3.12+, `dotnet` CLI\n\n1. Create a `.env` file in the repo root:\n\n```bash\nexport AZ_DEVOPS_PAT=\u003cAzure DevOps PAT with package read permissions\u003e\nexport GITHUB_TOKEN=\u003cGitHub PAT with write:packages permission\u003e\n```\n\n2. Install dependencies:\n\n```bash\npython -m venv venv \u0026\u0026 source venv/bin/activate\npip install -e .\n```\n\n#### CLI Reference\n\n`scripts/sync_nuget.py` is a CLI with five commands:\n\n**`sync`** — Download and upload packages defined in a packages file. Skips versions already published to the GitHub Package Registry.\n\n```bash\n# Sync all packages\nsource .env \u0026\u0026 python scripts/sync_nuget.py sync packages.yml\n\n# Sync a single package\nsource .env \u0026\u0026 python scripts/sync_nuget.py sync packages.yml --package Keyfactor.PKI\n```\n\n**`register`** — Add a package and version(s) to a packages file. Validates that each version exists in the Azure DevOps feed before writing.\n\n```bash\n# Register a new version of an existing package\nsource .env \u0026\u0026 python scripts/sync_nuget.py register packages.yml Keyfactor.PKI 8.4.0\n\n# Register multiple versions at once\nsource .env \u0026\u0026 python scripts/sync_nuget.py register packages.yml Keyfactor.PKI 8.4.0 8.5.0\n\n# Register a brand new package\nsource .env \u0026\u0026 python scripts/sync_nuget.py register packages.yml Keyfactor.NewPackage 1.0.0\n\n# Skip Azure DevOps feed validation\npython scripts/sync_nuget.py register packages.yml Keyfactor.PKI 8.4.0 --skip-validate\n```\n\nAfter registering, run `sync` to push the new version(s) to the GitHub Package Registry.\n\n**`upgrade`** — Query Azure DevOps for new versions of all packages already listed in a packages file and register them automatically.\n\n```bash\n# Check all packages for new stable versions and register them\nsource .env \u0026\u0026 python scripts/sync_nuget.py upgrade packages.yml\n\n# Preview what would be registered without writing\nsource .env \u0026\u0026 python scripts/sync_nuget.py upgrade packages.yml --dry-run\n\n# Upgrade a single package\nsource .env \u0026\u0026 python scripts/sync_nuget.py upgrade packages.yml --package Keyfactor.PKI\n\n# Include prerelease versions\nsource .env \u0026\u0026 python scripts/sync_nuget.py upgrade packages.yml --include-prerelease\n```\n\nAfter upgrading, run `sync` to push the new versions to the GitHub Package Registry.\n\n**`sort`** — Sort versions for all packages in a packages file into ascending semver order and remove any duplicates.\n\n```bash\npython scripts/sync_nuget.py sort packages.yml\n```\n\n**`download`** — Download a single package version from Azure DevOps without uploading it.\n\n```bash\n# Download to the default nupkgs/ directory\nsource .env \u0026\u0026 python scripts/sync_nuget.py download Keyfactor.PKI 8.4.0\n\n# Download to a custom directory\nsource .env \u0026\u0026 python scripts/sync_nuget.py download Keyfactor.PKI 8.4.0 --output-dir /tmp/packages\n```\n\n### Manually using dotnet CLI\n\n1. Create a GitHub PAT with `write:packages` access and grant it SSO.\n2. Push the package:\n\n```bash\ndotnet nuget push ./Your.Package.1.0.0.nupkg \\\n  --source \"https://nuget.pkg.github.com/keyfactor/index.json\" \\\n  --api-key $GITHUB_TOKEN\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyfactor%2Fpublic-nuget-packages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyfactor%2Fpublic-nuget-packages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyfactor%2Fpublic-nuget-packages/lists"}