{"id":21433454,"url":"https://github.com/prma85/cypress-azure-keyvault","last_synced_at":"2026-03-18T01:09:56.210Z","repository":{"id":44516116,"uuid":"297268544","full_name":"prma85/cypress-azure-keyvault","owner":"prma85","description":"A Cypress plugin as an NPM package to get variables and values from Microsoft Azure Keyvaults during testing runs. Useful to get user/login information by the environment. ","archived":false,"fork":false,"pushed_at":"2025-07-14T22:36:27.000Z","size":1569,"stargazers_count":6,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-17T08:49:53.409Z","etag":null,"topics":["azure","cypress","cypress-plugin","npm","npm-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cypress-azure-keyvault","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prma85.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}},"created_at":"2020-09-21T07:56:43.000Z","updated_at":"2025-10-04T16:39:46.000Z","dependencies_parsed_at":"2024-10-12T03:30:42.878Z","dependency_job_id":"20392a36-332e-4042-a20f-e9dc7ac63f2d","html_url":"https://github.com/prma85/cypress-azure-keyvault","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"a088a56e6d8a6b871091399a80eff5b215b633a5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prma85/cypress-azure-keyvault","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prma85%2Fcypress-azure-keyvault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prma85%2Fcypress-azure-keyvault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prma85%2Fcypress-azure-keyvault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prma85%2Fcypress-azure-keyvault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prma85","download_url":"https://codeload.github.com/prma85/cypress-azure-keyvault/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prma85%2Fcypress-azure-keyvault/sbom","scorecard":{"id":745662,"data":{"date":"2025-08-11","repo":{"name":"github.com/prma85/cypress-azure-keyvault","commit":"a088a56e6d8a6b871091399a80eff5b215b633a5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-m5vv-6r4h-3vj9","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T18:37:47.901Z","repository_id":44516116,"created_at":"2025-08-22T18:37:47.901Z","updated_at":"2025-08-22T18:37:47.901Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30639063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-18T00:09:27.587Z","status":"ssl_error","status_checked_at":"2026-03-18T00:09:26.123Z","response_time":56,"last_error":"SSL_read: 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":["azure","cypress","cypress-plugin","npm","npm-package"],"created_at":"2024-11-22T23:28:22.908Z","updated_at":"2026-03-18T01:09:56.184Z","avatar_url":"https://github.com/prma85.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cypress-azure-keyvault\n\n[![npm version](https://badge.fury.io/js/cypress-azure-keyvault.svg)](https://badge.fury.io/js/cypress-azure-keyvault)[![Codacy Badge](https://app.codacy.com/project/badge/Grade/80c98201d9d44cedbd999251c609a8f5)](https://www.codacy.com/gh/prma85/cypress-azure-keyvault/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=prma85/cypress-azure-keyvault\u0026amp;utm_campaign=Badge_Grade)\n\nA custom Cypress plugin to access recover keys from Microsoft Azure Key Vaults.\n\n## Installation\n\n```bash\nnpm install cypress-azure-keyvault --save-dev\n```\n\nor\n\n```bash\nyarn add cypress-azure-keyvault --dev\n```\n\n## Configuring\n\n### Load the Module\n\nRegister the package's commands for use in your tests on your `cypress/support/index.ts` (or js file):\n\n```ts\nimport \"cypress-azure-keyvault\";\n```\n\nAnd now you need to load the plugin into your `cypress/plugins/index.js`:\n\n```js\nconst { azureKeyvaultPlugin } = require(\"cypress-azure-keyvault/dist/plugins\");\nmodule.exports = (on, config) =\u003e {\n  // `on` is used to hook into various events Cypress emits\n  // `config` is the resolved Cypress config\n  return azureKeyvaultPlugin(on, config);\n};\n```\n\nIf using typescript, load the plugin into your `cypress/plugins/index.ts`:\n\n```ts\nimport { azureKeyvaultPlugin } from  \"cypress-azure-keyvault/dist/plugins\";\nexport default (on, config) =\u003e azureKeyvaultPlugin(on, config);\n```\n\n### Configure access to Azure Key Vaults\n\nIn order to use the Azure Key Vault plugin, you must store your Azure access information as environment variables (either locally or/and define environment variables on azure).\n\nYou can also set it in a .env file (if you are using `dotenv-cli` package) or into your pipeline (as build variables).\n\nYou can find where to generate these values on the [Azure Portal](https://portal.azure.com/).\n\n```bash\n  export AZURE_CLIENT_ID=\"generated-app-ID\"\n  export AZURE_CLIENT_SECRET=\"random-password\"\n  export AZURE_TENANT_ID=\"tenant-ID\"\n```\n\n## Using the `cy.getKeyvaultData()`\n\n### Command interface\n\n```ts\n// command parameters\ninterface GetKeyvaultDataOptions {\n  vault: string; // they keyvault name\n  keys: string[]; // list of keys that you want to recover\n  keyPrefix?: string; // a prefix for each key if the key vault is shared or if you prefix your keys by environment (optional)\n  envSuffix?: string; // identifier for the environment (optional)\n}\n\n// command return\ninterface KeyVaultData {\n  envSuffix: string;\n  data: {\n    [i: string]: string;\n  };\n}\n```\n\n### Example\n\n#### Without key prefix\n\n```ts\ndescribe(\"Example Azure Key Vault Flow\", () =\u003e {\n  let keysValues;\n  before(() =\u003e {\n    cy.getKeyvaultData({\n      vault: 'myAppVault',\n      keys: ['user', 'password']\n    }).then(result =\u003e (keysValues = result.data));\n  });\n\n  it(\"should use key vault\", () =\u003e {\n    // my login tasks\n    console.log(keysValues);\n    // { user: \"admin\", password: \"admin123!\" }\n  })\n```\n\n#### With key prefix\n\n```ts\ndescribe(\"Example Azure Key Vault Flow\", () =\u003e {\n  let keysValues;\n  before(() =\u003e {\n    cy.getKeyvaultData({\n      vault: 'myAppVault',\n      keys: ['user', 'password'],\n      keyPrefix: \"production\"\n    }).then(result =\u003e (keysValues = result.data));\n  });\n\n  it(\"should use key vault\", () =\u003e {\n    // my login tasks\n    console.log(keysValues);\n    // { production-user: \"admin\", production-password: \"!QAWS@##was342\" }\n  })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprma85%2Fcypress-azure-keyvault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprma85%2Fcypress-azure-keyvault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprma85%2Fcypress-azure-keyvault/lists"}