Skip to content

PocAccount2/hack_js

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

hack_js

Scan JavaScript dependencies for known security vulnerabilities using npm audit.

This action fails the workflow when moderate or higher vulnerabilities are found, making it suitable for blocking pull request merges using GitHub repo rulesets.


Inputs

Name Required Description
node_version Yes Node.js version (e.g. 18)
GITHUB_TOKEN Yes GitHub token

Usage

name: Dependency Audit

on:
  pull_request:
  push:
    branches: [main]

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: PocAccount2/hack_js@v4
        with:
          node_version: '18'
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published