+
Skip to content

bohdanbirdie/fat-lock-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fat Lock Action

Fat Lock Action Logo

GitHub Super-Linter CI CodeQL

A GitHub Action that monitors the size of lockfile changes in pull requests. It helps prevent accidental lockfile regeneration and ensures that dependency changes are intentional. 🔐

Features

  • Monitors changes in package lockfiles (package-lock.json, yarn.lock, etc.)
  • Comments on PRs when lockfile changes exceed a specified threshold
  • Can fail CI checks if changes are too large
  • Configurable thresholds and file paths
  • Supports multiple lockfile formats

Usage

Add this action to your workflow:

name: Check lockfile Changes

on: [pull_request]

permissions:
  pull-requests: write
  contents: read

jobs:
  check-lock:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: bohdanbirdie/fat-lock-action@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          size-threshold: 1000
          lockfile-path: 'package-lock.json'
          comment-enabled: true
          fail-if-exceeded: true

Configuration

Input Description Required Default
github-token GitHub token for API access Yes N/A
size-threshold Maximum number of lines changed in lockfile No 1000
lockfile-path Path to the lockfile to monitor No package-lock.json
comment-enabled Whether to comment on PR when threshold is exceeded No true
fail-if-exceeded Whether to fail the check when threshold is exceeded No true

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载