Skip to content

Commit 5918a0e

Browse files
Merge branch 'master' into dev
2 parents b178976 + 974e864 commit 5918a0e

File tree

7 files changed

+94
-14
lines changed

7 files changed

+94
-14
lines changed

.github/workflows/scorecard.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Scorecard supply-chain security
2+
on:
3+
# For Branch-Protection check. Only the default branch is supported. See
4+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5+
branch_protection_rule:
6+
# To guarantee Maintained check is occasionally updated. See
7+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8+
schedule:
9+
- cron: '37 3 * * 4'
10+
push:
11+
branches: [ "master" ]
12+
13+
# Declare default permissions as read only.
14+
permissions: read-all
15+
16+
jobs:
17+
analysis:
18+
name: Scorecard analysis
19+
runs-on: ubuntu-latest
20+
permissions:
21+
# Needed to upload the results to code-scanning dashboard.
22+
security-events: write
23+
# Needed to publish results and get a badge (see publish_results below).
24+
id-token: write
25+
26+
steps:
27+
- name: "Checkout code"
28+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
29+
with:
30+
persist-credentials: false
31+
32+
- name: "Run analysis"
33+
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
34+
with:
35+
results_file: results.sarif
36+
results_format: sarif
37+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
38+
# - you want to enable the Branch-Protection check without using the new GitHub Repos(which are public by default): https://github.blog/2023-07-24-github-repository-rules-are-now-generally-available/
39+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
40+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
41+
42+
# - Publish results to OpenSSF REST API for easy access by consumers
43+
# - Allows the repository to include the Scorecard badge.
44+
# - See https://github.com/ossf/scorecard-action#publishing-results.
45+
publish_results: true
46+
47+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
48+
# format to the repository Actions tab.
49+
- name: "Upload artifact"
50+
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
51+
with:
52+
name: SARIF file
53+
path: results.sarif
54+
retention-days: 5
55+
56+
# Upload the results to GitHub's code scanning dashboard.
57+
- name: "Upload to code-scanning"
58+
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
59+
with:
60+
sarif_file: results.sarif

HISTORY.rst

+15-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@
33
History
44
-------
55

6-
3.5 (XXXX-XX-XX)
6+
3.6 (2023-11-25)
77
++++++++++++++++
8-
- String codec name is now 'idna2008' as overriding the system
9-
codec 'idna' was not working.
8+
9+
- Fix regression to include tests in source distribution.
10+
11+
3.5 (2023-11-24)
12+
++++++++++++++++
13+
14+
- Update to Unicode 15.1.0
15+
- String codec name is now "idna2008" as overriding the system codec
16+
"idna" was not working.
1017
- Fix typing error for codec encoding
11-
- Remove 'setup.py' to complete migration to pyproject.toml
18+
- "setup.cfg" has been added for this release due to some downstream
19+
lack of adherence to PEP 517. Should be removed in a future release
20+
so please prepare accordingly.
21+
- Removed reliance on a symlink for the "idna-data" tool to comport
22+
with PEP 517 and the Python Packaging User Guide for sdist archives.
1223
- Added security reporting protocol for project
1324

1425
Thanks Jon Ribbens, Diogo Teles Sant'Anna, Wu Tingfeng for contributions

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2013-2022, Kim Davies and contributors.
3+
Copyright (c) 2013-2023, Kim Davies and contributors.
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ IDNA specification this conversion is not performed.
112112
>>> idna.encode('Königsgäßchen', uts46=True, transitional=True)
113113
'xn--knigsgsschen-lcb0w'
114114
115-
Implementors should use transitional processing with caution, only in
115+
Implementers should use transitional processing with caution, only in
116116
rare cases where conversion from legacy labels to current labels must be
117117
performed (i.e. IDNA implementations that pre-date 2008). For typical
118118
applications that just need to convert labels, transitional processing
@@ -155,8 +155,8 @@ and perform the required calculations to identify eligibility. There are
155155
three main modes:
156156

157157
* ``idna-data make-libdata``. Generates ``idnadata.py`` and
158-
``uts46data.py``, the pre-calculated lookup tables using for IDNA and
159-
UTS 46 conversions. Implementors who wish to track this library against
158+
``uts46data.py``, the pre-calculated lookup tables used for IDNA and
159+
UTS 46 conversions. Implementers who wish to track this library against
160160
a different Unicode version may use this tool to manually generate a
161161
different version of the ``idnadata.py`` and ``uts46data.py`` files.
162162

@@ -172,7 +172,7 @@ three main modes:
172172

173173
The tool accepts a number of arguments, described using ``idna-data
174174
-h``. Most notably, the ``--version`` argument allows the specification
175-
of the version of Unicode to use in computing the table data. For
175+
of the version of Unicode to be used in computing the table data. For
176176
example, ``idna-data --version 9.0.0 make-libdata`` will generate
177177
library data against Unicode 9.0.0.
178178

@@ -186,7 +186,7 @@ Additional Notes
186186
* **Version support**. This library supports Python 3.5 and higher.
187187
As this library serves as a low-level toolkit for a variety of
188188
applications, many of which strive for broad compatibility with older
189-
Python versions, there is no rush to remove older intepreter support.
189+
Python versions, there is no rush to remove older interpreter support.
190190
Removing support for older versions should be well justified in that the
191191
maintenance burden has become too high.
192192

SECURITY.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
# Security Policy
22

33
## Supported Versions
4+
45
Security updates are applied only to the latest release.
56

67
## Reporting a Vulnerability
7-
If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released.
88

9-
Please disclose it at our [security advisory](https://github.com/kjd/idna/security/advisories/new).
9+
If you have discovered a security vulnerability in this project, please
10+
report it privately. **Do not disclose it as a public issue.** This gives
11+
us time to work with you to fix the issue before public exposure, reducing
12+
the chance that the exploit will be used before a patch is released.
13+
14+
Please disclose your issue through Github's
15+
[security advisory facility](https://github.com/kjd/idna/security/advisories/new).
1016

11-
This project is maintained by a team of volunteers on a reasonable-effort basis. As such, vulnerabilities will be disclosed in a best effort base.
17+
We will endeavor to prioritize review, remediation and disclosure of
18+
vulnerabilites. However, be mindful that this project is maintained by a
19+
team of volunteers who work on a best effort basis.

idna/package_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '3.4'
1+
__version__ = '3.6'
22

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ dynamic = ["version"]
4343

4444
[tool.flit.sdist]
4545
exclude = [".gitignore", ".github/"]
46+
include = ["tests", "tools", "HISTORY.rst"]

0 commit comments

Comments
 (0)