{"id":16208426,"url":"https://github.com/g-rath/check-with-osv-detector","last_synced_at":"2025-04-07T20:29:45.685Z","repository":{"id":65157700,"uuid":"493803300","full_name":"G-Rath/check-with-osv-detector","owner":"G-Rath","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-09T00:29:34.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T22:16:26.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/G-Rath.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}},"created_at":"2022-05-18T19:41:57.000Z","updated_at":"2023-08-30T22:46:58.000Z","dependencies_parsed_at":"2023-02-08T08:00:24.522Z","dependency_job_id":null,"html_url":"https://github.com/G-Rath/check-with-osv-detector","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G-Rath%2Fcheck-with-osv-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G-Rath%2Fcheck-with-osv-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G-Rath%2Fcheck-with-osv-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G-Rath%2Fcheck-with-osv-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/G-Rath","download_url":"https://codeload.github.com/G-Rath/check-with-osv-detector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247724720,"owners_count":20985562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-10T10:16:54.722Z","updated_at":"2025-04-07T20:29:45.640Z","avatar_url":"https://github.com/G-Rath.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check with OSV Detector\n\nA GitHub Action for checking project dependencies for known security\nvulnerabilities using the\n[`osv-detector`](https://github.com/G-Rath/osv-detector) CLI tool.\n\n## Usage\n\n```yaml\njobs:\n  check-dependencies:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Check dependencies for security vulnerabilities\n        uses: g-rath/check-with-osv-detector@main\n```\n\nThis action assumes it's running on `ubuntu-latest` and so downloads the Linux\namd64 binary. If for some reason you want to use a different OS and\narchitecture, you can manually specify the binary to download with the\n`osv-detector-binary` input:\n\n```yaml\njobs:\n  check-dependencies:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Check dependencies for security vulnerabilities\n        uses: g-rath/check-with-osv-detector@main\n        with:\n          osv-detector-binary: osv-detector_0.5.0_darwin_amd64\n```\n\n## Passing paths to files and directories\n\nBy default, the detector checks the working directory - you can use the `paths`\ninput to specify alternative files and directories to check:\n\n```yaml\njobs:\n  check-dependencies:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Check dependencies for security vulnerabilities\n        uses: g-rath/check-with-osv-detector@main\n        with:\n          # prettier-ignore\n          paths:\n            backend/\n            frontend/\n```\n\n## Passing flags\n\nYou can provide additional flags to the detector using the `flags` input:\n\n```yaml\njobs:\n  check-dependencies:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Check dependencies for security vulnerabilities\n        uses: g-rath/check-with-osv-detector@main\n        with:\n          paths: ./npm-shrinkwrap.json\n          # prettier-ignore\n          flags:\n            --parse-as package-lock.json\n            --ignore GHSA-vh95-rmgr-6w4m\n```\n\nYou can find out what flags are available for a particular version of the\ndetector by passing the `--help` flag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-rath%2Fcheck-with-osv-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-rath%2Fcheck-with-osv-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-rath%2Fcheck-with-osv-detector/lists"}