{"id":27085353,"url":"https://github.com/ambersun1234/hardhat-test-action","last_synced_at":"2026-04-21T09:32:50.525Z","repository":{"id":149989302,"uuid":"622555479","full_name":"ambersun1234/hardhat-test-action","owner":"ambersun1234","description":"Simple wrapper of hardhat test to GitHub Action ","archived":false,"fork":false,"pushed_at":"2026-02-07T09:50:15.000Z","size":654,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-10T23:57:59.872Z","etag":null,"topics":["cicd","githubactions","hardhat","solidity","typescript"],"latest_commit_sha":null,"homepage":"","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/ambersun1234.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-04-02T13:17:11.000Z","updated_at":"2026-02-07T09:50:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc517434-f8c3-459e-a632-14dddabda652","html_url":"https://github.com/ambersun1234/hardhat-test-action","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ambersun1234/hardhat-test-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambersun1234%2Fhardhat-test-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambersun1234%2Fhardhat-test-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambersun1234%2Fhardhat-test-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambersun1234%2Fhardhat-test-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ambersun1234","download_url":"https://codeload.github.com/ambersun1234/hardhat-test-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambersun1234%2Fhardhat-test-action/sbom","scorecard":{"id":188652,"data":{"date":"2025-08-11","repo":{"name":"github.com/ambersun1234/hardhat-test-action","commit":"5114dd9bf69748b85c14444ffcfc72cb877c9884"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-16T20:14:17.962Z","repository_id":149989302,"created_at":"2025-08-16T20:14:17.962Z","updated_at":"2025-08-16T20:14:17.962Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cicd","githubactions","hardhat","solidity","typescript"],"created_at":"2025-04-06T04:25:57.760Z","updated_at":"2026-04-21T09:32:50.506Z","avatar_url":"https://github.com/ambersun1234.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hardhat Test Action\nSimple wrapper of hardhat test for GitHub Action\n\n## Introduction\nThis action aims to run on top of hardhat project, make sure you're using hardhat in your project\\\nCurrently, we support 2 package manager(`yarn` and `npm`)\\\nBy specifying `network` option in your workflow, this project can run on either `local hardhat network` or `testnet`\\\nOne thing to note is that when you choose to run with testnet, since we're actually integrating with real blockchain, you need to provide an account with some amount of ETH based on your test case usage, you can provide your account via [GitHub Secrets](https://github.com/Azure/actions-workflow-samples/blob/master/assets/create-secrets-for-GitHub-workflows.md)\n\n## How to use\nCreate a workflow file under `.github/workflows`, and name it as for example `test.yaml` and fill with following content\n```yaml\nname: unit-test\non: [push]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    name: Hardhat unit test\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v2\n    - name: Environment\n      uses: actions/setup-node@v3\n    - name: Test\n      uses: ambersun1234/hardhat-test-action@v1\n      with:\n        network: hardhat\n```\nor\n```yaml\nname: unit-test\non: [push]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    name: Hardhat unit test\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v2\n    - name: Environment\n      uses: actions/setup-node@v3\n    - name: Test\n      uses: ambersun1234/hardhat-test-action@v1\n      with:\n        network: goerli\n        private_key: ${{ secrets.PRIVATE_KEY }}\n        rpc_url: ${{ secrets.RPC_URL }}\n```\n\n## Secrets\nIn order for this action to work properly, you may need to specify `repository secrets`\n\n1. `PRIVATE_KEY`\n    + Your private key without `0x`\n2. `RPC_URL`\n    + RPC url endpoint, e.g. `https://eth-sepolia.g.alchemy.com/v2/xxxxxxxxxxxxxx`\n\nNote that secrets are `case sensitive`, be sure to create secrets with all upper case\n\n\u003e You can find more information on [Encrypted secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets)\n\n## Note\nTo align environment variable with your hardhat project,\\\nplease check your variable declaration match the following convention or not\\\nWe'll use only 2 categories of variable\n+ private key :arrow_right: defined as `PRIVATE_KEY`\n+ rpc url :arrow_right: based on different test network, will have these structure `{NETWORK}_RPC_URL`, where `NETWORK` is the upper case of network name(e.g. `GOERLI`, `SEPOLIA`)\n\nThese environment variable needs to be consistent with data in \n+ `hardhat.config.ts`\n+ `.env`\n\n## Example\nYou can find a complete example of how to use this action at [github.com/ambersun1234/nft](https://github.com/ambersun1234/nft)\n\n## Build\n```\n$ yarn install\n$ yarn webpack\n```\n\n## License\nThis project is licensed under MIT license - see the [LICENSE](./LICENSE) file for more detail","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambersun1234%2Fhardhat-test-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fambersun1234%2Fhardhat-test-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambersun1234%2Fhardhat-test-action/lists"}