git-lint 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.adoc +21 -4
- data/lib/git/lint/analyzers/abstract.rb +1 -0
- data/lib/git/lint/identity.rb +1 -1
- metadata +8 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 217b7749f87f9d937c13906b0dc6433337e3bab50dce59ca7e8c83461bf36a76
|
4
|
+
data.tar.gz: 92c9afbc9da13b851bc167e371cabe36cf4b462694468c01d16c874b7f56bee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a43fffa66b31e106709d7da90c38c1fe291ccf2546d07b110f820c57d9ff5b38fd689e464ec2868644068ee07ef0e39506cb78c948c3f1f0291cb4686c64190
|
7
|
+
data.tar.gz: aeadbaf169dcb7f21df18c4737a405df4cb1e8ebdec17dc8565ce94906421c042b591eaa16ae999832611fbb34bfabe038fe826ba439e443df347a47a2c211c4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -171,7 +171,7 @@ variables. The default configuration is:
|
|
171
171
|
:severity: :error
|
172
172
|
:includes: "\\-"
|
173
173
|
:commit_body_issue_tracker_link:
|
174
|
-
:enabled: true
|
174
|
+
:enabled: true
|
175
175
|
:severity: :error
|
176
176
|
:excludes:
|
177
177
|
- "(f|F)ix(es|ed)?\\s\\#\\d+"
|
@@ -869,13 +869,30 @@ worth considering:
|
|
869
869
|
* Avoid using link:https://git-scm.com/book/en/v2/Git-Tools-Submodules[Git Submodules]. This
|
870
870
|
practice leads to complicated project cloning, deployments, maintenance, etc. Use separate
|
871
871
|
repositories to better organize and split out this work. Sophisticated package managers, like
|
872
|
-
link:https://bundler.io[Bundler]
|
873
|
-
|
872
|
+
link:https://bundler.io[Bundler], exist to manage these dependencies better than what multiple Git
|
873
|
+
Submodules can accomplish.
|
874
874
|
* Avoid using link:https://git-lfs.github.com[Git LFS] for tracking binary artifacts/resources.
|
875
875
|
These files are not meant for version control and lead to large repositories that are time
|
876
876
|
consuming to clone/deploy. Use storage managers, like link:https://aws.amazon.com/s3[Amazon S3]
|
877
877
|
for example, that are better suited for binary assets that don't change often.
|
878
878
|
|
879
|
+
=== Security
|
880
|
+
|
881
|
+
Ensure signed commits, pushes, and tags are enabled within your global Git Configuration to reduce
|
882
|
+
an
|
883
|
+
link:https://blog.gruntwork.io/how-to-spoof-any-user-on-github-and-what-to-do-to-prevent-it-e237e95b8deb[attack
|
884
|
+
vector]. Run the following commands to enable:
|
885
|
+
|
886
|
+
[source,bash]
|
887
|
+
----
|
888
|
+
git config --global commit.gpgSign true
|
889
|
+
git config --global push.gpgSign true
|
890
|
+
git config --global tag.gpgSign true
|
891
|
+
----
|
892
|
+
|
893
|
+
⚠️ GitHub, unfortunately, doesn't support signed pushes so you might need to leave that
|
894
|
+
configuration disabled.
|
895
|
+
|
879
896
|
=== Commits
|
880
897
|
|
881
898
|
* Use a commit subject that explains _what_ is being committed.
|
@@ -1017,9 +1034,9 @@ do this, follow these steps:
|
|
1017
1034
|
. Check _Require review from Code Owners_.
|
1018
1035
|
. Check _Require status checks to pass before merging_.
|
1019
1036
|
. Check _Require branches to be up to date before merging_.
|
1037
|
+
. Check _Require signed commits_.
|
1020
1038
|
. Check _Require linear history_ (pairs well with the merge options mentioned above).
|
1021
1039
|
. Check _Include administrators_.
|
1022
|
-
. Uncheck _Require signed commits_ (only necessary for tags).
|
1023
1040
|
. Uncheck _Allow force pushes_.
|
1024
1041
|
. Uncheck _Allow deletions_.
|
1025
1042
|
|
data/lib/git/lint/identity.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
|
29
29
|
QWc=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2020-
|
31
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pastel
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '7.
|
53
|
+
version: '7.11'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '7.
|
60
|
+
version: '7.11'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: runcom
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,14 +204,14 @@ dependencies:
|
|
204
204
|
requirements:
|
205
205
|
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: '0.
|
207
|
+
version: '0.89'
|
208
208
|
type: :development
|
209
209
|
prerelease: false
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '0.
|
214
|
+
version: '0.89'
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
216
|
name: rubocop-performance
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,14 +260,14 @@ dependencies:
|
|
260
260
|
requirements:
|
261
261
|
- - "~>"
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: '0.
|
263
|
+
version: '0.19'
|
264
264
|
type: :development
|
265
265
|
prerelease: false
|
266
266
|
version_requirements: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
268
|
- - "~>"
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: '0.
|
270
|
+
version: '0.19'
|
271
271
|
description:
|
272
272
|
email:
|
273
273
|
- brooke@alchemists.io
|
metadata.gz.sig
CHANGED
Binary file
|