Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

feat: add initial Lula Lint Action #31

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/lula-lint.yaml
Original file line number Diff line number Diff line change
@@ -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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
oscal-target: "oscal-component.yaml"
oscal-target: "oscal-component.yaml"

Add new line at the end of the file.