Skip to content

Commit d6235cf

Browse files
authored
Allow any Bitwarden repository to have actions pinned to non-hash values (#330)
1 parent 3e5a876 commit d6235cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lint-workflow/lint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def lint(filename):
301301
break
302302

303303
# If the step has a 'uses' key, check if actions are in supported actions list and also value hash, except bitwarden actions.
304-
if "bitwarden/gh-actions" not in path:
304+
if "bitwarden/" not in path:
305305
try:
306306
# Check if actions are in supported actions list.
307307
if path not in supported_actions:
@@ -342,7 +342,7 @@ def lint(filename):
342342
# If the step has a 'uses' key, check path for external workflow
343343
path_list = path.split("/", 2)
344344

345-
if "bitwarden/gh-actions" in path and len(path_list) < 3:
345+
if "bitwarden/" in path and len(path_list) < 3:
346346
findings.append(
347347
LintFinding(
348348
f"Step {str(i)} of job key '{job_key}' does not have a valid action path. (missing name of the repository or workflow)",

0 commit comments

Comments
 (0)