bitwarden_workflow_linter 0.4.3__py3-none-any.whl → 0.4.5__py3-none-any.whl

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.
@@ -1,3 +1,3 @@
1
1
  """Metadata for Workflow Linter."""
2
2
 
3
- __version__ = "0.4.3"
3
+ __version__ = "0.4.5"
@@ -39,10 +39,13 @@ class Step:
39
39
  new_step.key = idx
40
40
  new_step.job = job
41
41
 
42
- if "uses" in data.ca.items and data.ca.items["uses"][2]:
43
- new_step.uses_comment = data.ca.items["uses"][2].value.replace("\n", "")
42
+ if new_step.uses:
43
+ if "uses" in data.ca.items and data.ca.items["uses"][2]:
44
+ new_step.uses_comment = data.ca.items["uses"][2].value.replace("\n", "")
45
+ new_step.uses_version = new_step.uses_comment.split(" ")[-1]
44
46
  if "@" in new_step.uses:
45
47
  new_step.uses_path, new_step.uses_ref = new_step.uses.split("@")
46
- new_step.uses_version = new_step.uses_comment.split(" ")[-1]
48
+ else:
49
+ new_step.uses_path = new_step.uses
47
50
 
48
51
  return new_step
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitwarden_workflow_linter
3
- Version: 0.4.3
3
+ Version: 0.4.5
4
4
  Summary: Custom GitHub Action Workflow Linter
5
5
  Project-URL: Homepage, https://github.com/bitwarden/workflow-linter
6
6
  Project-URL: Issues, https://github.com/bitwarden/workflow-linter/issues
@@ -1,4 +1,4 @@
1
- bitwarden_workflow_linter/__about__.py,sha256=9N9ONAqoDrsjubOSgdUF1kWS6eCbwYraAoIFGilTP60,59
1
+ bitwarden_workflow_linter/__about__.py,sha256=ZvByJRESrLSPV1AdJakzzCsfLY6zpdnixPf_UNUoymQ,59
2
2
  bitwarden_workflow_linter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  bitwarden_workflow_linter/actions.py,sha256=LAn3yQeMMmCOvJWeTn3dE1U2nyEJqIBMwESq3TtY9hE,9069
4
4
  bitwarden_workflow_linter/cli.py,sha256=wgkK1MlVbo6Zx3f2CZZ_tkSWq_hdsGciHJA1knX6Yuw,1699
@@ -10,7 +10,7 @@ bitwarden_workflow_linter/rule.py,sha256=Qb60JiUDAWN3ayrMGoSbbDCSFmw-ql8djzAkxIS
10
10
  bitwarden_workflow_linter/utils.py,sha256=9WO3T9w9vKAow_xR6JDz2MvdMXKExV18AzucF0vh67s,4695
11
11
  bitwarden_workflow_linter/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  bitwarden_workflow_linter/models/job.py,sha256=nBK7_VYu6RRST7WLtdLsoRErl5j4Er8W9hCw9XlSECk,2043
13
- bitwarden_workflow_linter/models/step.py,sha256=1bKAtKZmHcO8O1e_HuoXxR1bwHDEXUssYo7EHOjY7QI,1711
13
+ bitwarden_workflow_linter/models/step.py,sha256=j81iWYWcNI9x55n1MOR0N6ogKaQ_4-CKu9LnI_fwEOE,1814
14
14
  bitwarden_workflow_linter/models/workflow.py,sha256=MkqvIY4JX2eWFODNTodS_l4I8uUq08WCHy3C4kYcL0s,1395
15
15
  bitwarden_workflow_linter/rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  bitwarden_workflow_linter/rules/job_environment_prefix.py,sha256=sY1cBU5AeBHWSyun7gwnoS0ycRyBMjjVo_2lvanBj7U,2612
@@ -20,8 +20,8 @@ bitwarden_workflow_linter/rules/pinned_job_runner.py,sha256=Dm6_sdPX0yFMji_y2LMF
20
20
  bitwarden_workflow_linter/rules/step_approved.py,sha256=6XuYoasw2ME8vQu5G0ZygUSi7X5amLLWeXH81cqvKv8,3159
21
21
  bitwarden_workflow_linter/rules/step_pinned.py,sha256=fyqBjarR0UNQ6tU_ja0ZOi2afP942BMqOz5nU_yKzmw,3413
22
22
  bitwarden_workflow_linter/rules/underscore_outputs.py,sha256=w8pP1dTJEC9I2X5fQIAHDAEiaNP1xMhb4kPiF-dn8U0,4131
23
- bitwarden_workflow_linter-0.4.3.dist-info/METADATA,sha256=fjdMjTvfw4TrCn5TNdrxkwmSk0zXDVoB4-iAMj6zHpQ,6173
24
- bitwarden_workflow_linter-0.4.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- bitwarden_workflow_linter-0.4.3.dist-info/entry_points.txt,sha256=SA_yF9CwL4VMUvdcmCd7k9rjsQNzfeOUBuDnMnaO8QQ,60
26
- bitwarden_workflow_linter-0.4.3.dist-info/licenses/LICENSE.txt,sha256=uY-7N9tbI7xc_c0WeTIGpacSCnsB91N05eCIg3bkaRw,35140
27
- bitwarden_workflow_linter-0.4.3.dist-info/RECORD,,
23
+ bitwarden_workflow_linter-0.4.5.dist-info/METADATA,sha256=LE73MhLnnTN56Sn11iVWLx63-8UpWPYQleZ3kpT7EN8,6173
24
+ bitwarden_workflow_linter-0.4.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ bitwarden_workflow_linter-0.4.5.dist-info/entry_points.txt,sha256=SA_yF9CwL4VMUvdcmCd7k9rjsQNzfeOUBuDnMnaO8QQ,60
26
+ bitwarden_workflow_linter-0.4.5.dist-info/licenses/LICENSE.txt,sha256=uY-7N9tbI7xc_c0WeTIGpacSCnsB91N05eCIg3bkaRw,35140
27
+ bitwarden_workflow_linter-0.4.5.dist-info/RECORD,,