ci: fix warnings reported by yamllint

This commit is contained in:
alexey.lysiuk 2022-07-02 11:01:25 +03:00
parent 558129a734
commit 913b5fa60a
3 changed files with 43 additions and 31 deletions

View file

@ -1,3 +1,4 @@
---
name: Build Targets
on: [push, pull_request]
@ -11,26 +12,27 @@ jobs:
fail-fast: false
matrix:
config:
- {
- {
name: "GZDoom"
}
- {
- {
name: "Raze"
}
- {
- {
name: "PrBoom-Plus"
}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1
- name: Build
run: |
./build.py --target ${{ matrix.config.name }}
- name: Build
run: |
./build.py --target ${{ matrix.config.name }}
- name: List Build Directory
if: always()
shell: bash
run: |
git status
ls -lR .
- name: List Build Directory
if: always()
shell: bash
run: |
git status
ls -lR .
...

View file

@ -1,3 +1,4 @@
---
name: Lint Code
on: [push, pull_request]
@ -7,23 +8,30 @@ jobs:
if: "${{ !contains(github.event.head_commit.message, '[skip lint]') }}"
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
- name: Super-Linter
uses: docker://ghcr.io/github/super-linter:slim-v4
env:
- name: Super-Linter
uses: docker://ghcr.io/github/super-linter:slim-v4
env:
FILTER_REGEX_INCLUDE: .*(\.py|\.md|\.yml)$
FILTER_REGEX_EXCLUDE: .*/deps/.*
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_PYTHON_BLACK: false
- name: Bandit
run: |
pip3 install bandit
# [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
# [B310:blacklist] Audit url open for permitted schemes. Allowing use of file:/ or custom schemes is often unexpected.
# [B404:blacklist] Consider possible security implications associated with subprocess module.
# [B603:subprocess_without_shell_equals_true] subprocess call - check for execution of untrusted input.
# [B607:start_process_with_partial_path] Starting a process with a partial executable path
bandit --skip B101,B310,B404,B603,B607 --recursive . --exclude ./deps/vulkan-headers/share/vulkan/registry
- name: Bandit
run: |
pip3 install bandit
# [B101:assert_used] Use of assert detected. The enclosed code will be
# removed when compiling to optimised byte code.
# [B310:blacklist] Audit url open for permitted schemes. Allowing use
# of file:/ or custom schemes is often unexpected.
# [B404:blacklist] Consider possible security implications associated
# with subprocess module.
# [B603:subprocess_without_shell_equals_true] subprocess call - check
# for execution of untrusted input.
# [B607:start_process_with_partial_path] Starting a process with a
# partial executable path
bandit --skip B101,B310,B404,B603,B607 --recursive . --exclude \
./deps/vulkan-headers/share/vulkan/registry
...

View file

@ -1,3 +1,4 @@
---
name: Test Libraries
on: [push, pull_request]
@ -7,8 +8,9 @@ jobs:
if: "${{ !contains(github.event.head_commit.message, '[skip test]') }}"
runs-on: "macos-12"
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1
- name: Run tests
run: |
./build.py --target=test-deps
- name: Run tests
run: |
./build.py --target=test-deps
...