Skip to content

Commit e720887

Browse files
committed
feat: add optional skip-checkout input to container-scan action
1 parent e1fc6a4 commit e720887

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
rev: v3.1.0
1010
hooks:
1111
- id: prettier
12-
stages: [commit]
12+
stages: [pre-commit]
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
1414
rev: v5.0.0 # Use the ref you want to point at
1515
hooks:

container-scan/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ GitHub Action for scanning container images for vulnerabilities using Lacework.
1313
```yaml
1414
- uses: @
1515
with:
16+
skip-checkout:
17+
# Skip repository checkout in this step
18+
#
19+
# Required: false
20+
# Default: false
21+
1622
dockerhub-user:
1723
# DockerHub username
1824
#

container-scan/action.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ description: >
33
GitHub Action for scanning container images for vulnerabilities using Lacework.
44
55
inputs:
6+
skip-checkout:
7+
required: false
8+
default: "false"
9+
description: Skip repository checkout in this step
10+
611
dockerhub-user:
712
required: false
813
default: ""
@@ -42,6 +47,7 @@ runs:
4247
using: composite
4348
steps:
4449
- name: Checkout Repository
50+
if: ${{ inputs.skip-checkout != 'true' }}
4551
uses: actions/checkout@v4
4652

4753
- name: Build Docker Image

0 commit comments

Comments
 (0)