Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iansu/package-checkup-action
Check for vulnerable, outdated or unused dependencies in JavaScript and TypeScript projects
https://github.com/iansu/package-checkup-action
dependencies dependency github-action javascript node npm typescript yarn
Last synced: about 1 month ago
JSON representation
Check for vulnerable, outdated or unused dependencies in JavaScript and TypeScript projects
- Host: GitHub
- URL: https://github.com/iansu/package-checkup-action
- Owner: iansu
- License: mit
- Created: 2020-05-30T23:59:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-18T19:28:31.000Z (over 2 years ago)
- Last Synced: 2024-05-02T05:11:15.943Z (8 months ago)
- Topics: dependencies, dependency, github-action, javascript, node, npm, typescript, yarn
- Language: TypeScript
- Homepage:
- Size: 1.08 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Package Checkup Action
[![Build status](https://github.com/iansu/package-checkup-action/workflows/CI/badge.svg)](https://github.com/iansu/package-checkup-action/actions)
GitHub Action to check for vulnerable, outdated or unused dependencies in JavaScript or TypeScript projects.
This Action posts a comment on all Pull Requests with information about outdated packages, packages with security issues and unused packages as specified in `package.json`.
## Requirements
Supported package managers are [npm](https://www.npmjs.com/) and [Yarn](https://classic.yarnpkg.com/lang/en/) v1.
## Usage
Create a file in your repo named `.github/workflows/package-checkup.yml` with the following contents:
```yml
name: Package Checkupon:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']jobs:
title:
name: checkup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check dependencies
uses: package-checkup-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
```## Settings
The following properties can be set under `with` in the workflow:
| Name | Description | Default | Required |
| -------------------- | ------------------------------------------ | ------- | -------- |
| showOutdatedPackages | Show a list of outdated packages | true | No |
| token | GitHub token used to post a comment on PRs | | Yes |## Credits
Made with :tumbler_glass: by [Ian Sutherland](https://iansutherland.ca) ([@iansu](https://twitter.com/iansu)). This project is released under the [MIT](/LICENSE) license.