From fa05cd41ee0df463baa6a58ca216ce9042d2f649 Mon Sep 17 00:00:00 2001 From: Andy Mills Date: Fri, 28 Jun 2024 05:53:27 +0000 Subject: [PATCH] still working on where/how to oscal lint --- .github/workflows/pull-request-conditionals.yaml | 2 ++ tasks.yaml | 4 ++++ tasks/lint.yaml | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/.github/workflows/pull-request-conditionals.yaml b/.github/workflows/pull-request-conditionals.yaml index 8086c883d..3b137fe13 100644 --- a/.github/workflows/pull-request-conditionals.yaml +++ b/.github/workflows/pull-request-conditionals.yaml @@ -39,6 +39,8 @@ jobs: run: brew install defenseunicorns/tap/uds@0.11.2 - name: Run Formatting Checks run: uds run lint-check --no-progress + - name: Setup Lula + uses: .github/actions/setup # This job checks if there are changes in specific paths source packages. check-paths: diff --git a/tasks.yaml b/tasks.yaml index d6976988a..980322fdc 100644 --- a/tasks.yaml +++ b/tasks.yaml @@ -95,3 +95,7 @@ tasks: - name: lint-fix actions: - task: lint:fix + + - name: lint-oscal + actions: + - task: lint:oscal diff --git a/tasks/lint.yaml b/tasks/lint.yaml index d5b732137..474fc4281 100644 --- a/tasks/lint.yaml +++ b/tasks/lint.yaml @@ -1,3 +1,6 @@ +includes: + - remote: https://raw.githubusercontent.com/defenseunicorns/uds-common/main/tasks/lint.yaml + tasks: - name: fix description: "Fix formatting issues in the repo" @@ -17,3 +20,8 @@ tasks: cmd: CMD=pip && which $CMD || CMD=pip3 && $CMD install yamllint - description: yaml lint cmd: yamllint . -c .yamllint --no-warnings + + - name: oscal + actions: + - description: Lula Lint OSCAL + - task: remote:oscal