Skip to content

Commit 67732b8

Browse files
committed
[wf] some workflows
1 parent 1e0a129 commit 67732b8

File tree

6 files changed

+184
-33
lines changed

6 files changed

+184
-33
lines changed

.github/pylintrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# plyintrc for acme2certifier CI pipeline
2+
[MESSAGES CONTROL]
3+
# c0301 - line to long
4+
# r0205 - useless-object-inheritance
5+
# r0801 - Similar lines in 2 files
6+
# r0902 - too-many-instance-attributes
7+
# r0903 - too-few-public methods
8+
# r0913 - too-many-arguments
9+
# r1702 - too many nested blocks
10+
# w0703 - too general exception
11+
# W1202 - logging-format-interpolation
12+
disable=C0301, R0205, R0801, R0902, R0903, R0913, R1702, W0703, W1202
13+
14+
[DESIGN]
15+
# Maximum number of locals for function / method
16+
max-locals=20
17+
max-branches=20
18+
max-public-methods=30
19+
max-statements=100

.github/workflows/blank.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ master ]
7+
schedule:
8+
- cron: '0 2 * * 6'
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
# Override automatic language detection by changing the below list
19+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
20+
language: ['python']
21+
# Learn more...
22+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
27+
with:
28+
# We must fetch at least the immediate parents so that if this is
29+
# a pull request then we can checkout the head.
30+
fetch-depth: 2
31+
32+
# If this run was triggered by a pull request event, then checkout
33+
# the head of the pull request instead of the merge commit.
34+
- run: git checkout HEAD^2
35+
if: ${{ github.event_name == 'pull_request' }}
36+
37+
# Initializes the CodeQL tools for scanning.
38+
- name: Initialize CodeQL
39+
uses: github/codeql-action/init@v1
40+
with:
41+
languages: ${{ matrix.language }}
42+
43+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
44+
# If this step fails, then you should remove it and run the build manually (see below)
45+
- name: Autobuild
46+
uses: github/codeql-action/autobuild@v1
47+
48+
# ℹ️ Command-line programs to run using the OS shell.
49+
# 📚 https://git.io/JvXDl
50+
51+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
52+
# and modify them (or add more) to build your code if your project
53+
# uses a compiled language
54+
55+
#- run: |
56+
# make bootstrap
57+
# make release
58+
59+
- name: Perform CodeQL Analysis
60+
uses: github/codeql-action/analyze@v1
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# workflow to run the acme2certifier unittest suite
2+
3+
name: Markdown Link check
4+
5+
on:
6+
push:
7+
pull_request:
8+
branches: [ devel ]
9+
schedule:
10+
- cron: '0 2 * * 6'
11+
12+
jobs:
13+
markdown-link-check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@master
17+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
18+
- name: Lint changelog file root
19+
uses: avto-dev/markdown-lint@v1
20+
with:
21+
args: '*.md'
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow integrates a collection of open source static analysis tools
2+
# with GitHub code scanning. For documentation, or to provide feedback, visit
3+
# https://github.com/github/ossar-action
4+
name: OSSAR
5+
6+
on:
7+
push:
8+
pull_request:
9+
branches: [ master ]
10+
schedule:
11+
- cron: '0 2 * * 6'
12+
13+
jobs:
14+
OSSAR-Scan:
15+
# OSSAR runs on windows-latest.
16+
# ubuntu-latest and macos-latest support coming soon
17+
runs-on: windows-latest
18+
19+
steps:
20+
# Checkout your code repository to scan
21+
- name: Checkout repository
22+
uses: actions/checkout@v2
23+
with:
24+
# We must fetch at least the immediate parents so that if this is
25+
# a pull request then we can checkout the head.
26+
fetch-depth: 2
27+
28+
# If this run was triggered by a pull request event, then checkout
29+
# the head of the pull request instead of the merge commit.
30+
- run: git checkout HEAD^2
31+
if: ${{ github.event_name == 'pull_request' }}
32+
33+
# Ensure a compatible version of dotnet is installed.
34+
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
35+
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
36+
# Remote agents already have a compatible version of dotnet installed and this step may be skipped.
37+
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action:
38+
# - name: Install .NET
39+
# uses: actions/setup-dotnet@v1
40+
# with:
41+
# dotnet-version: '3.1.x'
42+
43+
# Run open source static analysis tools
44+
- name: Run OSSAR
45+
uses: github/ossar-action@v1
46+
id: ossar
47+
48+
# Upload results to the Security tab
49+
- name: Upload OSSAR results
50+
uses: github/codeql-action/upload-sarif@v1
51+
with:
52+
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

.github/workflows/python-test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# workflow to run the dkb-robo unittest suite
2+
3+
name: Python Tests
4+
5+
on:
6+
push:
7+
pull_request:
8+
branches: [ devel ]
9+
schedule:
10+
- cron: '0 2 * * 6'
11+
12+
jobs:
13+
pylint:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python_version: [3.x, 3.8]
18+
name: Pylint test (${{ matrix.python_version }})
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Python ${{ matrix.python_version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python_version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pylint pylint-exit
29+
30+
- name: "Pylint folder: dkb_robo"
31+
run: |
32+
pylint --rcfile=".github/pylintrc" xca_template_parser.py || pylint-exit $?

0 commit comments

Comments
 (0)