Skip to content

Commit a10fbd8

Browse files
Merge pull request #444 from pyupio/develop
2.3.5 Patch
2 parents 46d54bc + 7b24998 commit a10fbd8

9 files changed

+25
-26
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
environment: main
1414

1515
steps:
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[
2-
{"version": "2.0.0"},
3-
{"version": "2.2.0"},
4-
{"version": "2.2.1"},
5-
{"version": "2.3.1"}
2+
{"version": "2.3.4"}
63
]

.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [ push ]
44

55
jobs:
66
test:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-20.04
88
strategy:
99
matrix:
1010
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11" ]
@@ -32,7 +32,7 @@ jobs:
3232

3333
strategy:
3434
matrix:
35-
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
35+
os: ['windows-latest', 'ubuntu-20.04', 'macos-latest']
3636
env:
3737
BINARY_OS: '${{ matrix.os }}'
3838
steps:
@@ -60,13 +60,13 @@ jobs:
6060
path: dist/safety-win-x86_64.exe
6161
if-no-files-found: error
6262
- uses: actions/upload-artifact@v3
63-
if: ${{ matrix.os == 'ubuntu-latest' }}
63+
if: ${{ matrix.os == 'ubuntu-20.04' }}
6464
with:
6565
name: safety-linux-i686
6666
path: dist/safety-linux-i686
6767
if-no-files-found: error
6868
- uses: actions/upload-artifact@v3
69-
if: ${{ matrix.os == 'ubuntu-latest' }}
69+
if: ${{ matrix.os == 'ubuntu-20.04' }}
7070
with:
7171
name: safety-linux-x86_64
7272
path: dist/safety-linux-x86_64
@@ -81,7 +81,7 @@ jobs:
8181

8282
deploy-pypi:
8383
needs: build-binaries
84-
runs-on: ubuntu-latest
84+
runs-on: ubuntu-20.04
8585

8686
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
8787

@@ -105,7 +105,7 @@ jobs:
105105

106106
create-gh-release:
107107
needs: deploy-pypi
108-
runs-on: ubuntu-latest
108+
runs-on: ubuntu-20.04
109109
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
110110
permissions:
111111
contents: write

.github/workflows/test-insecure.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
matrix:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
outputs:
1313
matrix: ${{ steps.set-matrix.outputs.matrix }}
1414
steps:
@@ -24,7 +24,7 @@ jobs:
2424
# case, to avoid confusion
2525
test-auto-requirements-txt-insecure:
2626
needs: [ matrix ]
27-
runs-on: ubuntu-latest
27+
runs-on: ubuntu-20.04
2828
environment: main
2929
strategy:
3030
matrix:
@@ -49,7 +49,7 @@ jobs:
4949
# Same as above, but for a poetry lock file
5050
test-auto-poetry-insecure:
5151
needs: [ matrix ]
52-
runs-on: ubuntu-latest
52+
runs-on: ubuntu-20.04
5353
environment: main
5454
strategy:
5555
matrix:
@@ -74,7 +74,7 @@ jobs:
7474
# Same as above, but for a Pipfile.lock
7575
test-auto-pipfile-insecure:
7676
needs: [ matrix ]
77-
runs-on: ubuntu-latest
77+
runs-on: ubuntu-20.04
7878
environment: main
7979
strategy:
8080
matrix:
@@ -101,7 +101,7 @@ jobs:
101101
### installs things in the root VM that the action runs on; this is what gets scanned.
102102
test-auto-environment-insecure:
103103
needs: [ matrix ]
104-
runs-on: ubuntu-latest
104+
runs-on: ubuntu-20.04
105105
environment: main
106106
strategy:
107107
matrix:
@@ -132,7 +132,7 @@ jobs:
132132
### Scans a recently built Docker container. This uses a few heuristics, defined in entrypoint.sh
133133
test-auto-docker-insecure:
134134
needs: [ matrix ]
135-
runs-on: ubuntu-latest
135+
runs-on: ubuntu-20.04
136136
environment: main
137137
strategy:
138138
matrix:

.github/workflows/test-secure.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
matrix:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
outputs:
1414
matrix: ${{ steps.set-matrix.outputs.matrix }}
1515
steps:
@@ -25,7 +25,7 @@ jobs:
2525
# case, to avoid confusion
2626
test-auto-requirements-txt-secure:
2727
needs: [ matrix ]
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-20.04
2929
environment: main
3030
strategy:
3131
matrix:
@@ -47,7 +47,7 @@ jobs:
4747
# Same as above, but for a poetry lock file
4848
test-auto-poetry-secure:
4949
needs: [ matrix ]
50-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-20.04
5151
environment: main
5252
strategy:
5353
matrix:
@@ -69,7 +69,7 @@ jobs:
6969
# Same as above, but for a Pipfile.lock
7070
test-auto-pipfile-secure:
7171
needs: [ matrix ]
72-
runs-on: ubuntu-latest
72+
runs-on: ubuntu-20.04
7373
environment: main
7474
strategy:
7575
matrix:
@@ -93,7 +93,7 @@ jobs:
9393
### installs things in the root VM that the action runs on; this is what gets scanned.
9494
test-auto-environment-secure:
9595
needs: [ matrix ]
96-
runs-on: ubuntu-latest
96+
runs-on: ubuntu-20.04
9797
environment: main
9898
strategy:
9999
matrix:
@@ -121,7 +121,7 @@ jobs:
121121
### Scans a recently built Docker container. This uses a few heuristics, defined in entrypoint.sh
122122
test-auto-docker-secure:
123123
needs: [ matrix ]
124-
runs-on: ubuntu-latest
124+
runs-on: ubuntu-20.04
125125
environment: main
126126
strategy:
127127
matrix:

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55
The format is partly based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [PEP 440](https://peps.python.org/pep-0440/)
77

8+
## [Unreleased] 2.3.5.dev
9+
810
## [2.3.4] - 2022-12-07
911
- Removed LegacyVersion use; this fixes the issue with packaging 22.0.
1012
- Fixed typos in the README.

binaries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class environment:
1919
def __init__(self):
2020
os_mapping = {
2121
"windows-latest": self.WIN,
22-
"ubuntu-latest": self.LINUX,
22+
"ubuntu-20.04": self.LINUX,
2323
"macos-latest": self.MACOS
2424
}
2525
self.os = os_mapping[os.getenv("BINARY_OS")]

safety/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.4
1+
2.3.5.dev

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ install_requires =
3939
setuptools>=19.3
4040
Click>=8.0.2
4141
requests
42-
packaging>=21.0
42+
packaging>=21.0,<22.0
4343
dparse>=0.6.2
4444
ruamel.yaml>=0.17.21
4545
dataclasses==0.8; python_version=="3.6"

0 commit comments

Comments
 (0)