Skip to content

Commit

Permalink
swapped to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudBeard committed Jun 17, 2024
1 parent 8226c7b commit 1a9246c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- name: Lint the repository
run: |
uds run lint:yaml --no-progress
uds run lint:use-oscal --no-progress
uds run lint:oscal --no-progress --set OSCALFILES=./oscal.yaml
15 changes: 5 additions & 10 deletions tasks/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
variables:
- name: OSCALFILES
default: ./oscal.yaml

tasks:
- name: deps
description: Install linting tool dependencies
Expand All @@ -14,15 +18,6 @@ tasks:

- name: oscal
description: Run linting checks on OSCAL
inputs:
oscalfiles:
description: The path to the OSCAL files
default: ./oscal.yaml
actions:
- description: Lint OSCAL files
cmd: lula tools lint -f ${{ .inputs.oscalfiles }}

- name: use-oscal
description: Invoke OSCAL linting
actions:
- task: oscal
cmd: lula tools lint -f $OSCALFILES

0 comments on commit 1a9246c

Please sign in to comment.