From 1403d92541302ef808c34c6838a631ad48826d52 Mon Sep 17 00:00:00 2001 From: sbp-bvanb <126502840+sbp-bvanb@users.noreply.github.com> Date: Tue, 4 Jun 2024 09:44:11 +0200 Subject: [PATCH] feat: [#31] Install and execute YAMLlint (#49) --- README.md | 6 +++--- action.yml | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dea43ea..ffe2450 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# mcvs-golang-action +# MCVS-golang-action Mission Critical Vulnerability Scanner (MCVS) Golang Action is a custom [GitHub Action](https://github.com/features/actions) that consists of the @@ -19,7 +19,7 @@ following steps: In summary, using this action will ensure that Golang code meets certain standards before it will be deployed to production as the assembly line will -fail if an issue arrises. +fail if an issue arises. ## usage @@ -30,7 +30,7 @@ Create a `.github/workflows/golang.yml` file with the following content: name: Golang 'on': push jobs: - mvcs-golang-action: + MCVS-golang-action: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4.1.1 diff --git a/action.yml b/action.yml index 646d6d5..7d94931 100644 --- a/action.yml +++ b/action.yml @@ -20,6 +20,13 @@ runs: using: "composite" steps: # + # YAML linting. + # + - run: | + pip install --user yamllint==1.35.1 + yamllint . + shell: bash + # # Install the golang version that has been defined in the go.mod file. # - uses: actions/setup-go@v5.0.1