https://github.com/030/trivyignore-validator-action
Trivyignore Validator Action validates a .trivyignore file if it resides in a repository.
https://github.com/030/trivyignore-validator-action
trivy-ignore-validator
Last synced: about 1 year ago
JSON representation
Trivyignore Validator Action validates a .trivyignore file if it resides in a repository.
- Host: GitHub
- URL: https://github.com/030/trivyignore-validator-action
- Owner: 030
- License: mit
- Created: 2023-12-31T11:58:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-13T13:58:06.000Z (over 2 years ago)
- Last Synced: 2025-02-07T23:44:00.049Z (over 1 year ago)
- Topics: trivy-ignore-validator
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trivyignore-validator-action
Trivyignore Validator Action validates a .trivyignore file if it resides in a
repository.
## checks
- Expiry before next month, e.g.: if expiry 2024-06-06 on 2023-12-31, then an
exit 1 will be thrown as the max allowed date would be: 2024-01-31.
## usage
Create a .github/workflows/trivyignore-validator.yml file:
```bash
---
name: Trivyignore-validator
"on": push
jobs:
trivyignore-validator-action:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4.1.1
- uses: 030/trivyignore-validator-action@v0.1.0
```
## unit tests
```bash
docker run -it -v "${PWD}:/code" --entrypoint=bash bats/bats:v1.10.0
apk add --no-cache coreutils
bats --tap test --print-output-on-failure
```