From 617fb281961f19c1ddbb535711805bba2ec8f32a Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 13 Feb 2021 18:51:13 +1000 Subject: [PATCH] refactor: use certified GitHub Action to increase security `actions/setup-python@v2` is a certified Action. --- .github/workflows/lint.yml | 12 +++++++++++- .yamllint | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8b70d47..dc75fbd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,5 +26,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax + architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install yamllint - name: 🧹 YAML Lint - uses: ibiqlik/action-yamllint@v3 + run: | + # return non-zero exit code on warnings + yamllint --strict . diff --git a/.yamllint b/.yamllint index f2d4fa6..8a9f034 100644 --- a/.yamllint +++ b/.yamllint @@ -4,4 +4,5 @@ extends: default rules: document-start: false + line-length: false truthy: false