Skip to content

Trivyignore Validator Action validates a .trivyignore file if it resides in a repository.

License

Notifications You must be signed in to change notification settings

030/trivyignore-validator-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

---
name: Trivyignore-validator
"on": push
jobs:
  trivyignore-validator-action:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/[email protected]
      - uses: 030/[email protected]

unit tests

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

About

Trivyignore Validator Action validates a .trivyignore file if it resides in a repository.

Topics

Resources

License

Stars

Watchers

Forks

Languages