Skip to content

Commit f96a186

Browse files
authored
Merge branch 'main' into libsolv
2 parents d712526 + 8837ce6 commit f96a186

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1932
-436
lines changed

.github/actions/spelling/allow.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ getenv
118118
gettext
119119
Giridhar
120120
github
121+
gitlint
121122
glibc
122123
gnomeshell
123124
gnupg
@@ -172,6 +173,7 @@ libbpg
172173
libc
173174
libcurl
174175
libdb
176+
libebml
175177
libexpat
176178
libgcrypt
177179
libical
@@ -180,6 +182,8 @@ liblas
180182
libnss
181183
libpng
182184
libraryname
185+
librsvg
186+
libseccomp
183187
libsndfile
184188
libsolv
185189
libsoup
@@ -358,6 +362,7 @@ Vorbis
358362
VPkg
359363
webkitgtk
360364
website
365+
whl
361366
wiki
362367
wikipedia
363368
willmcgugan

.github/workflows/cve_scan.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CVE scan
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
cve_scan:
10+
name: CVE scan on dependencies
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
with:
17+
cache: 'pip'
18+
cache-dependency-path: '**/requirements.txt'
19+
- name: Get date
20+
id: get-date
21+
run: |
22+
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
23+
- name: Get cached database
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.cache/cve-bin-tool
27+
key: ${{ runner.os }}-cve-bin-tool-${{ steps.get-date.outputs.date }}
28+
- name: Install dependencies and cve-bin-tool
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install --upgrade setuptools
32+
python -m pip install --upgrade wheel
33+
pip install . -r doc/requirements.txt
34+
- name: Test to check for CVEs for Python requirements and HTML report dependencies
35+
run: |
36+
pytest test/test_requirements.py

.github/workflows/linting.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
linting:
10+
name: Linting
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
tool: ['isort', 'black', 'pyupgrade', 'flake8', 'format_checkers', 'bandit', 'gitlint']
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- uses: actions/setup-python@v2
21+
with:
22+
cache: 'pip'
23+
- name: Install pre-commit
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install --upgrade setuptools
27+
python -m pip install --upgrade pre-commit
28+
pre-commit install
29+
- name: Install cve-bin-tool if needed
30+
if: ${{ matrix.tool == 'format_checkers' }}
31+
run: |
32+
python -m pip install --upgrade wheel
33+
python -m pip install .
34+
- name: Run ${{ matrix.tool }} using pre-commit
35+
if: ${{ matrix.tool != 'gitlint' }}
36+
run: |
37+
pre-commit run ${{ matrix.tool }} --all-files
38+
- name: Run gitlint
39+
if: ${{ github.event_name == 'pull_request' && matrix.tool == 'gitlint' }}
40+
run: |
41+
python -m pip install --upgrade gitlint
42+
gitlint --commits ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}

0 commit comments

Comments
 (0)