Skip to content

Commit

Permalink
feat: add optional skip-checkout input to container-scan action
Browse files Browse the repository at this point in the history
  • Loading branch information
bilals12 committed Nov 28, 2024
1 parent e1fc6a4 commit e720887
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
rev: v3.1.0
hooks:
- id: prettier
stages: [commit]
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the ref you want to point at
hooks:
Expand Down
6 changes: 6 additions & 0 deletions container-scan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ GitHub Action for scanning container images for vulnerabilities using Lacework.
```yaml
- uses: @
with:
skip-checkout:
# Skip repository checkout in this step
#
# Required: false
# Default: false

dockerhub-user:
# DockerHub username
#
Expand Down
6 changes: 6 additions & 0 deletions container-scan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ description: >
GitHub Action for scanning container images for vulnerabilities using Lacework.
inputs:
skip-checkout:
required: false
default: "false"
description: Skip repository checkout in this step

dockerhub-user:
required: false
default: ""
Expand Down Expand Up @@ -42,6 +47,7 @@ runs:
using: composite
steps:
- name: Checkout Repository
if: ${{ inputs.skip-checkout != 'true' }}
uses: actions/checkout@v4

- name: Build Docker Image
Expand Down

0 comments on commit e720887

Please sign in to comment.