{"id":29138605,"url":"https://github.com/nextcloud-libraries/npm-audit-action","last_synced_at":"2025-06-30T14:10:27.339Z","repository":{"id":236283751,"uuid":"792270654","full_name":"nextcloud-libraries/npm-audit-action","owner":"nextcloud-libraries","description":"Run npm audit and get formatted output","archived":false,"fork":false,"pushed_at":"2025-04-28T18:27:48.000Z","size":572,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T21:06:48.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nextcloud-libraries.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":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T10:20:00.000Z","updated_at":"2025-04-08T07:09:13.000Z","dependencies_parsed_at":"2024-11-15T13:31:58.267Z","dependency_job_id":"41a0bc88-f5fc-42cd-83ed-3c97649c3d60","html_url":"https://github.com/nextcloud-libraries/npm-audit-action","commit_stats":null,"previous_names":["susnux/npm-audit-action","nextcloud-libraries/npm-audit-action"],"tags_count":2,"template":false,"template_full_name":"actions/javascript-action","purl":"pkg:github/nextcloud-libraries/npm-audit-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnpm-audit-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnpm-audit-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnpm-audit-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnpm-audit-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextcloud-libraries","download_url":"https://codeload.github.com/nextcloud-libraries/npm-audit-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnpm-audit-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262788745,"owners_count":23364399,"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":"2025-06-30T14:10:23.751Z","updated_at":"2025-06-30T14:10:27.321Z","avatar_url":"https://github.com/nextcloud-libraries.png","language":"TypeScript","readme":"\u003c!--\n  - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n  - SPDX-License-Identifier: MIT\n  --\u003e\n\n# NPM audit action\n\n[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/npm-audit-action)](https://api.reuse.software/info/github.com/nextcloud-libraries/npm-audit-action)\n[![CodeQL](https://github.com/susnux/npm-audit-action/actions/workflows/codeql-analysis.yml/badge.svg?branch=main\u0026event=push)](https://github.com/susnux/npm-audit-action/actions/workflows/codeql-analysis.yml)\n![CI](https://github.com/susnux/npm-audit-action/actions/workflows/ci.yml/badge.svg)\n\n\u003c!-- ![Coverage](./badges/coverage.svg) --\u003e\n\nThis action allows to run `npm audit` and creats a Markdown formatted output from it, it also allows to run `npm audit fix` afterwards.\nThe idea is to run this action together with the [create-pull-request](https://github.com/marketplace/actions/create-pull-request) action.\n\n## Usage\n\n```yaml\n- uses: actions/checkout@v4\n\n- name: Run NPM audit\n  id: npm-audit\n  uses: susnux/npm-audit-action\n  with:\n      # Optionally set an output path\n      output-path: pr-content.md\n\n- name: Create Pull Request\n  uses: peter-evans/create-pull-request@v6\n  with:\n      body: ${{ steps.npm-audit.outputs.markdown }}\n      # Alternativly use the output file\n      body-path: pr-content.md\n```\n\n### Action inputs\n\n| Name                | Description                                   | Default                       |\n| ------------------- | --------------------------------------------- | ----------------------------- |\n| `fix`               | If `npm audit fix` should be executed instead | `true`                        |\n| `output-path`       | Output path for formatted markdown            | By default no file is created |\n| `working-directory` | Path to run `npm audit`                       | `GITHUB_WORKSPACE`            |\n\n### Action outputs\n\n| Name                   | Description                                                    |\n| ---------------------- | -------------------------------------------------------------- |\n| `markdown`             | The formatted markdown output                                  |\n| `issues-total`         | Total number of issues found                                   |\n| `issues-fixable`       | Number of issues fixable with `npm audit fix`                  |\n| `issues-force-fixable` | Number of issues manually fixable with `npm audit fix --force` |\n| `issues-unfixable`     | Number of issues not fixable with `npm audit fix`              |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud-libraries%2Fnpm-audit-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextcloud-libraries%2Fnpm-audit-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud-libraries%2Fnpm-audit-action/lists"}