All Projects → lazy-actions → gitrivy

lazy-actions / gitrivy

Licence: MIT license
GitHub Issue + Trivy Action

Programming Languages

typescript
32286 projects
Smarty
1635 projects
javascript
184084 projects - #8 most used programming language
EJS
674 projects

Projects that are alternatives of or similar to gitrivy

add-an-issue-reference-action
A GitHub Action for adding a related issue reference to a pull request.
Stars: ✭ 19 (-58.7%)
Mutual labels:  github-actions
mysql-action
GitHub Action to setup a MySQL database
Stars: ✭ 105 (+128.26%)
Mutual labels:  github-actions
Github-Android-Action
Android Github Action that builds Android project, runs unit tests and generates debug APK, builds for Github Actions hackathon
Stars: ✭ 29 (-36.96%)
Mutual labels:  github-actions
verify-changed-files
Github action to verify file changes that occur during the workflow execution.
Stars: ✭ 62 (+34.78%)
Mutual labels:  github-actions
check-spelling
Spelling checker action
Stars: ✭ 139 (+202.17%)
Mutual labels:  github-actions
html5validator-action
GitHub Action that checks HTML5 syntax.
Stars: ✭ 27 (-41.3%)
Mutual labels:  github-actions
setup-action
▶️ GitHub Action using Coursier to install JVM and Scala tools
Stars: ✭ 30 (-34.78%)
Mutual labels:  github-actions
100 Days Of Go
100 days of Go learning
Stars: ✭ 24 (-47.83%)
Mutual labels:  github-actions
github-action
CLA Assistant GitHub Action
Stars: ✭ 165 (+258.7%)
Mutual labels:  github-actions
releasezri
Meaningful and minimalist release notes for developers
Stars: ✭ 25 (-45.65%)
Mutual labels:  github-actions
CKS-Exercises-Certified-Kubernetes-Security-Specialist
A set of curated exercises to help you prepare for the CKS exam
Stars: ✭ 124 (+169.57%)
Mutual labels:  trivy
git-tag-action
[GitHub Action] Get ${version} from package.json and git tag ${version} for the repository.
Stars: ✭ 26 (-43.48%)
Mutual labels:  github-actions
labeler
GitHub Action to assign labels to PRs based on configurable conditions
Stars: ✭ 47 (+2.17%)
Mutual labels:  github-actions
shell-linter
A Github Action for ShellCheck
Stars: ✭ 58 (+26.09%)
Mutual labels:  github-actions
actions
GitHub Actions for R-hub
Stars: ✭ 18 (-60.87%)
Mutual labels:  github-actions
setup-unity
GitHub Action to download and install Unity on Ubuntu, macOS or Windows. Based on Unity Hub
Stars: ✭ 26 (-43.48%)
Mutual labels:  github-actions
danger-action
Execute danger action for GitHub Actions.
Stars: ✭ 24 (-47.83%)
Mutual labels:  github-actions
deploy-firebase
A GitHub Action to deploy to Firebase Hosting
Stars: ✭ 63 (+36.96%)
Mutual labels:  github-actions
package-version-check-action
GitHub Actions to check package version before publish
Stars: ✭ 30 (-34.78%)
Mutual labels:  github-actions
github-stats-box
📌 Update a gist to contain your GitHub stats
Stars: ✭ 72 (+56.52%)
Mutual labels:  github-actions

Gitrivy (GitHub Issue + Trivy Action)

GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub release (latest by date) LICENSE

This is a GitHub Actions to scan vulnerability using Trivy.
If vulnerabilities are found by Trivy, it creates the following GitHub Issue.

image

Feature

  • Scan vulnerability used by Trivy
  • Create or Update GitHub Issue if vulnerabilities found
    • Customize Issue title, label and assignee
    • Issue body is generated by template parameter

Inputs

Parameter Required Default Value Description
token True N/A GitHub Access Token.
${{ secrets.GITHUB_TOKEN }} is recommended.
image True N/A The target image name to scan the vulnerability
Specify this parameter or IMAGE_NAME environment variable
trivy_version False latest Trivy version
severity False HIGH,CRITICAL Severities of vulnerabilities (separated by commma)
vuln_type False os,library Scan target are os and / or library (separated by commma)
ignore_unfixed False false Ignore unfixed vulnerabilities
Please specify true or false
template False N/A Path to template file
This parameter equals trivy --template option
By default, it uses src/default.tpl which is based on contrib/html.tpl
reference: Report Formats - Trivy
issue_title False Security Alert Issue title
issue_label False trivy,vulnerability Issue label (separated by commma)
issue_assignee False N/A Issue assignee (separated by commma)
fail_on_vulnerabilities False false Whether the action should fail if any vulnerabilities were found.

Outputs

Parameter Description
html_url The URL to view the issue
issue_number The created issue number

Example

Detect your docker image vulnerability everyday at 9:00 (UTC).

name: Vulnerability Scan

on:
  schedule:
    - cron: '0 9 * * *'

jobs:
  scan:
    name: Daily Vulnerability Scan
    runs-on: ubuntu-latest
    steps:
      - name: Pull docker image
        run: docker pull sample

      - uses: lazy-actions/gitrivy@v3
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          image: sample
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].