Skip to content

Commit

Permalink
build(deps): update safety requirement from <3.1,>=2.3.5 to >=2.3.5,<…
Browse files Browse the repository at this point in the history
…3.2 (#473)

Updates the requirements on [safety](https://github.com/pyupio/safety)
to permit the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pyupio/safety/releases">safety's
releases</a>.</em></p>
<blockquote>
<h2>3.1.0</h2>
<h2>What's Changed</h2>
<ul>
<li>feat: add headless auth by <a
href="https://github.com/yeisonvargasf"><code>@​yeisonvargasf</code></a>
in <a
href="https://redirect.github.com/pyupio/safety/pull/508">pyupio/safety#508</a></li>
<li>fix: support pydantic2 by using safety_schemas 0.0.2 by <a
href="https://github.com/yeisonvargasf"><code>@​yeisonvargasf</code></a>
in <a
href="https://redirect.github.com/pyupio/safety/pull/509">pyupio/safety#509</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/pyupio/safety/compare/3.0.1...3.1.0">https://github.com/pyupio/safety/compare/3.0.1...3.1.0</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pyupio/safety/blob/main/CHANGELOG.md">safety's
changelog</a>.</em></p>
<blockquote>
<h2>[3.1.0] - 2024-03-25</h2>
<ul>
<li>fix: ensure compatibility with Pydantic version 2.0 (<a
href="https://redirect.github.com/pyupio/safety/issues/509">#509</a>)</li>
<li>feat: introduce --headless flag to enable an alternative login
mechanism that bypasses the need for a local web server. (<a
href="https://redirect.github.com/pyupio/safety/issues/508">#508</a>)</li>
</ul>
<h2>[3.0.1] - 2024-01-19</h2>
<ul>
<li>fix: add back the license legacy cmd (<a
href="https://redirect.github.com/pyupio/safety/issues/498">#498</a>)</li>
<li>perf: unpin authlib and remove jwt</li>
</ul>
<h2>[3.0.0] - 2024-01-17</h2>
<h3>Safety 3.0.0 major version release!</h3>
<ul>
<li>Safety 3.0.0 is a significant update to Safety CLI from 2.x
versions, including enhancements to core features, new capabilities, and
breaking changes from 2.x.</li>
<li>See our <a
href="https://safetycli.com/research/safety-cli-3-vulnerability-scanning-for-secure-python-development">Blog
article announcing Safety CLI 3</a> for more details on Safety 3 and
these changes</li>
<li>See <a
href="https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x">Migrating
from Safety 2.x to Safety CLI 3</a> for notes and steps to migrating
from Safety 2 to Safety 3</li>
</ul>
<h3>Main updates</h3>
<ul>
<li>Added scan command, which scans a project’s directory for all Python
dependencies and includes many improvements over the <code>check</code>
command, including automatic Python project scanning, native support for
Poetry and Pipenv files, Python virtual environment folders, and more
granular configuration options.</li>
<li>Added auth commands, enabling new browser-based authentication of
Safety CLI.</li>
<li>An updated safety policy file schema to support new scan and
system-scan commands. This policy file schema is a breaking change from
the policy schema used for <code>safety check</code>. To migrate a
Safety 2.x policy, see <a
href="https://docs.safetycli.com/safety-docs/safety-cli-3/migrating-from-safety-cli-2.x-to-safety-cli-3.x">Migrating
from Safety 2.x to Safety CLI 3</a>.</li>
<li>Updated screen output to modern interactive interface, with new help
interfaces.</li>
<li>Updated to new JSON output structure to support new scan command,
other ecosystems, and other security findings.</li>
<li>Added a supporting <a
href="https://pypi.org/project/safety-schemas/">safety-schemas project
dependency</a>, also published and maintained by Safety, which defines
Safety vulnerability database file, Safety CLI policy file, and Safety
CLI JSON output schemas as pydantic models, formalizing these into
testable and versioned schemas.</li>
</ul>
<h3>New scan command:</h3>
<ul>
<li>New scan command: scans a Python project directory for Python
dependencies and security vulnerabilities. Safety scan replaces
<code>safety check</code> with a more powerful and easier to use
command. The scan command:</li>
<li>Finds and scans Python dependency files and virtual environments
inside the target directory without needing to specify file or
environment locations.</li>
<li>Adds native scanning and reporting for Poetry and Pipenv manifest
files, and Python virtual environment folders.</li>
<li>Adds configuration of scanning rules to;
<ul>
<li>exclude files and folders from the scan using Unix shell-style
wildcards only</li>
<li>Include files to be scanned</li>
<li>Max folder depth setting</li>
</ul>
</li>
<li>Reporting configuration rules
<ul>
<li>Reporting rules defining which types and specific vulnerabilities to
include or ignore stay the same as safety 2.x, although now in a
slightly different structure.</li>
</ul>
</li>
<li>Failing rules
<ul>
<li>Adds ability to configure rules for when safety should return a
non-zero (failing) exit code, which can be different from reporting
rules under the <code>report</code> field.</li>
</ul>
</li>
<li>Auto-updating rules
<ul>
<li>Adds ability to easily update insecure package versions in pip
requirements files.</li>
</ul>
</li>
</ul>
<h3>Other new commands:</h3>
<ul>
<li>Added auth command: manages Safety CLI’s authentication in
development environments, allowing easy authentication via the browser.
<ul>
<li>auth login - adds ability to authenticate safety cli via the
browser</li>
<li>auth register - adds ability to register for a Safety account via
the CLI, and get scanning within minutes</li>
<li>auth status -</li>
<li>auth logout -</li>
<li><code>safety check</code> command can still be used with the API key
--key argument, and scan and system-scan commands should also be</li>
</ul>
</li>
<li>Added configure command: configures safety cli using a config.ini
file, either saved to the user settings or system settings. This can be
used to configure safety’s authentication methods and global proxy
details.</li>
<li>Added system-scan command (beta): Adds the system-scan command,
which scans a machine for Python files and environments, reporting these
to screen output. system-scan is an experimental beta feature that can
scan an entire drive or machine for Python dependency files and Python
virtual environments, reporting on packages found and their associated
security vulnerabilities.</li>
<li>Added check-updates command: Check for version updates to Safety
CLI, and supports screen and JSON format outputs. Can be used in
organizations to test and rollout new version updates as recommended by
Safety Cybersecurity.</li>
</ul>
<h3>New policy file schema for scan and system-scan commands</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pyupio/safety/commit/eb7a23e790b828853973e7395d4c46df78a1720d"><code>eb7a23e</code></a>
Safety 3.1.0</li>
<li><a
href="https://github.com/pyupio/safety/commit/9cb3d3f7ea4f0896bd7f425eca7bd807d8116b77"><code>9cb3d3f</code></a>
fix: support pydantic2 by using safety_schemas 0.0.2 (<a
href="https://redirect.github.com/pyupio/safety/issues/509">#509</a>)</li>
<li><a
href="https://github.com/pyupio/safety/commit/4fbb211afea60fdc59ac70bae0570ef3e0a63940"><code>4fbb211</code></a>
feat: add headless auth (<a
href="https://redirect.github.com/pyupio/safety/issues/508">#508</a>)</li>
<li><a
href="https://github.com/pyupio/safety/commit/1958c256eb52e2946c2310ded6d36f0e6ad2d461"><code>1958c25</code></a>
Safety 3.0.1 (<a
href="https://redirect.github.com/pyupio/safety/issues/499">#499</a>)</li>
<li><a
href="https://github.com/pyupio/safety/commit/69dab0b5166608c9399693de36953d22480454ed"><code>69dab0b</code></a>
fix: add back the license legacy cmd (<a
href="https://redirect.github.com/pyupio/safety/issues/498">#498</a>)</li>
<li><a
href="https://github.com/pyupio/safety/commit/dd433594847fb22a3a9612c7844ca4c3c7ab8456"><code>dd43359</code></a>
Merge pull request <a
href="https://redirect.github.com/pyupio/safety/issues/497">#497</a>
from pyupio/perf/dependencies</li>
<li><a
href="https://github.com/pyupio/safety/commit/2f9859e352802f92523cc1bab149a3e9c68d15b5"><code>2f9859e</code></a>
perf: unpin authlib and remove jwt</li>
<li><a
href="https://github.com/pyupio/safety/commit/e9bf9776c641003b0b9a0af114cebb6b0d0b38a7"><code>e9bf977</code></a>
Merge pull request <a
href="https://redirect.github.com/pyupio/safety/issues/493">#493</a>
from pyupio/fix/links-readme</li>
<li><a
href="https://github.com/pyupio/safety/commit/ea1fecacc27c74390905877e8ee0269a851a72d7"><code>ea1feca</code></a>
update readme links to the new Github action</li>
<li><a
href="https://github.com/pyupio/safety/commit/615ef36877836a1c908c37570e17676ac919aee8"><code>615ef36</code></a>
Merge pull request <a
href="https://redirect.github.com/pyupio/safety/issues/491">#491</a>
from pyupio/release/3.0.0</li>
<li>Additional commits viewable in <a
href="https://github.com/pyupio/safety/compare/2.3.5...3.1.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
Guts authored Apr 1, 2024
2 parents c92e514 + 9700ac6 commit bd9e7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/security.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bandit>=1.7.5,<1.8
safety>=2.3.5,<3.1
safety>=2.3.5,<3.2

0 comments on commit bd9e7f4

Please sign in to comment.