From e3d4da9c07c9dfc1e05c83ae31e418093da4c583 Mon Sep 17 00:00:00 2001 From: Andy Mills Date: Tue, 16 Jan 2024 17:06:12 +0000 Subject: [PATCH 1/2] feat: add initial Lula Lint Action --- .github/workflows/lula-lint.yaml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/lula-lint.yaml diff --git a/.github/workflows/lula-lint.yaml b/.github/workflows/lula-lint.yaml new file mode 100644 index 0000000..d3c86ad --- /dev/null +++ b/.github/workflows/lula-lint.yaml @@ -0,0 +1,34 @@ +name: lula-lint + +permissions: + contents: read + +defaults: + run: + # We need -e -o pipefail for consistency with GitHub Actions' default behavior + shell: bash -e -o pipefail {0} + +on: + pull_request: + branches: + - main + paths: + - "oscal-component.yaml" + +jobs: + lint: + runs-on: ubuntu-latest + steps: + # Checkout the repo and setup the tooling for this job + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + ref: ${{ github.head_ref }} + + - name: Lula Setup + uses: defenseunicorns/lula-action/setup@095636b7880051e11b05f10a582fdd911526161c # Commit Tag + + - name: Lula Lint + uses: defenseunicorns/lula-action/lint@095636b7880051e11b05f10a582fdd911526161c # Commit Tag + with: + oscal-target: "oscal-component.yaml" \ No newline at end of file From 8892a7c695cc66e07139cf5a093702f55b5b729c Mon Sep 17 00:00:00 2001 From: Andy Mills Date: Tue, 16 Jan 2024 21:44:25 +0000 Subject: [PATCH 2/2] fix: added blank line for yaml syntax --- .github/workflows/lula-lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lula-lint.yaml b/.github/workflows/lula-lint.yaml index d3c86ad..5b98d23 100644 --- a/.github/workflows/lula-lint.yaml +++ b/.github/workflows/lula-lint.yaml @@ -31,4 +31,4 @@ jobs: - name: Lula Lint uses: defenseunicorns/lula-action/lint@095636b7880051e11b05f10a582fdd911526161c # Commit Tag with: - oscal-target: "oscal-component.yaml" \ No newline at end of file + oscal-target: "oscal-component.yaml"