Browse Source

commit handling edge case (#8)

pull/11/head
Joseph Flinn 4 years ago committed by GitHub
parent
commit
78a2db970f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lint-workflow/lint.py

2
lint-workflow/lint.py

@ -27,7 +27,7 @@ def lint(filename): @@ -27,7 +27,7 @@ def lint(filename):
# Make sure runner is using pinned version.
runner = job["runs-on"]
if runner.split("-")[1] == "latest":
if "-latest" in runner:
findings.append(
f"- Runner version is set to '{runner}', but needs to be pinned to a version."
)

Loading…
Cancel
Save