Repository: joke2k/faker
Pull request #1646 (2022-04-30 03:05:54)

chore: Set permissions for GitHub actions
 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>



Patch:
diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index f90cdd16..a432bd77 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 13.6.0
+current_version = 13.7.0
 files = VERSION faker/__init__.py docs/conf.py
 commit = True
 tag = True
diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml
index b0e2ca94..45f8242b 100644
--- a/.github/workflows/gh-release.yml
+++ b/.github/workflows/gh-release.yml
@@ -6,8 +6,13 @@ on:
 
 name: Create Release
 
+permissions:
+  contents: read
+
 jobs:
   build:
+    permissions:
+      contents: write  # for actions/create-release to create a release
     name: Create Release
     runs-on: ubuntu-latest
     steps:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5848d54d..ea72ec59 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 ## Changelog
 
+### [v13.7.0 - 2022-05-02](https://github.com/joke2k/faker/compare/v13.6.0...v13.7.0)
+
+* Add automotive provider for `fi_FI`,  `et_EE`, `lt_LT` and `vi_VN`. Thanks @zerogonal.
+
 ### [v13.6.0 - 2022-04-27](https://github.com/joke2k/faker/compare/v13.5.0...v13.6.0)
 
 * Add `ar_BH` automotive provider. Thanks @zerogonal.
diff --git a/VERSION b/VERSION
index fc9c00c1..d6ef9982 100644
--- a/VERSION
+++ b/VERSION
@@ -1,1 +1,1 @@
-13.6.0
+13.7.0
diff --git a/docs/conf.py b/docs/conf.py
index 4beadaee..8256ae92 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -51,9 +51,9 @@ copyright = "2014, Daniele Faraglia"
 # built documents.
 #
 # The short X.Y version.
-version = "13.6.0"
+version = "13.7.0"
 # The full version, including alpha/beta/rc tags.
-release = "13.6.0"
+release = "13.7.0"
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/faker/__init__.py b/faker/__init__.py
index 3d24ad36..951f285f 100644
--- a/faker/__init__.py
+++ b/faker/__init__.py
@@ -2,6 +2,6 @@ from faker.factory import Factory
 from faker.generator import Generator
 from faker.proxy import Faker
 
-VERSION = "13.6.0"
+VERSION = "13.7.0"
 
 __all__ = ("Factory", "Generator", "Faker")
diff --git a/faker/providers/automotive/et_EE/__init__.py b/faker/providers/automotive/et_EE/__init__.py
new file mode 100644
index 00000000..dab55164
--- /dev/null
+++ b/faker/providers/automotive/et_EE/__init__.py
@@ -0,0 +1,12 @@
+from .. import Provider as AutomotiveProvider
+
+
+class Provider(AutomotiveProvider):
+    """Implement automotive provider for ``et_EE`` locale.
+
+    Source:
+
+    - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Estonia
+    """
+
+    license_formats = ("### ???",)
diff --git a/faker/providers/automotive/fi_FI/__init__.py b/faker/providers/automotive/fi_FI/__init__.py
new file mode 100644
index 00000000..aa9420bf
--- /dev/null
+++ b/faker/providers/automotive/fi_FI/__init__.py
@@ -0,0 +1,12 @@
+from .. import Provider as AutomotiveProvider
+
+
+class Provider(AutomotiveProvider):
+    """Implement automotive provider for ``fi_FI`` locale.
+
+    Source:
+
+    - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Finland
+    """
+
+    license_formats = ("???-###",)
diff --git a/faker/providers/automotive/lt_LT/__init__.py b/faker/providers/automotive/lt_LT/__init__.py
new file mode 100644
index 00000000..6e10f8d1
--- /dev/null
+++ b/faker/providers/automotive/lt_LT/__init__.py
@@ -0,0 +1,12 @@
+from .. import Provider as AutomotiveProvider
+
+
+class Provider(AutomotiveProvider):
+    """Implement automotive provider for ``lt_LT`` locale.
+
+    Source:
+
+    - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Lithuania
+    """
+
+    license_formats = ("??? ###",)


Test patch:
diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py
index 3097a674..fc55ba2e 100644
--- a/tests/providers/test_automotive.py
+++ b/tests/providers/test_automotive.py
@@ -292,3 +292,9 @@ class TestViVn(_SimpleAutomotiveTestMixin):
     """Test vi_VN automotive provider methods"""
 
     license_plate_pattern: Pattern = re.compile(r"\d{2}[ABCDĐEFGHKLMNPSTUVXYZ]-\d{5}")
+
+
+class TestFiFi(_SimpleAutomotiveTestMixin):
+    """Test fi_FI automotive provider methods"""
+
+    license_plate_pattern: Pattern = re.compile(r"[A-Z]{3}-\d{3}")