Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codelytv/check-critical-files

👁 Check for critical files in your commits
https://github.com/codelytv/check-critical-files

action alerting code-review github github-action github-actions pull-requests secret-management secrets secrets-management utilities

Last synced: 3 months ago
JSON representation

👁 Check for critical files in your commits

Awesome Lists containing this project

README

        






👁 Check critical files


codely.tv
CodelyTV Courses
GitHub Action version


Warns you when critical files are modified

## 🚀 Usage

Create a file named `checker.yml` inside the `.github/workflows` directory and paste:

```yml
name: Check critical files

on: [pull_request]

jobs:
check-critical-files:
runs-on: ubuntu-latest
name: Check for critical files
steps:
- uses: codelytv/check-critical-files@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
critical_message: Take a look, you've commited some critical file
critical_files: |
.env
action.yml
```

> `critical_message` accepts `html` format.

## ⚖️ License

[MIT](LICENSE)