bitwarden_workflow_linter 0.12.5__tar.gz → 0.12.7__tar.gz
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.
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/CODEOWNERS +3 -1
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/renovate.json +12 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/PKG-INFO +1 -1
- bitwarden_workflow_linter-0.12.7/actionlint_version.json +4 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/__about__.py +1 -1
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/run_actionlint.py +13 -1
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.editorconfig +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.gitattributes +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/_version_type.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/bwwl_operations.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/cd.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/ci.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/enforce-labels.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/examples/ci.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/examples/example-references/_build.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/examples/example-references/_docker.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/examples/example-references/_test.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/examples/example-references/_version.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/examples/example.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/examples/scan.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/scan.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.gitignore +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.husky/pre-commit +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.python-version +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/CONTRIBUTING.md +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/LICENSE.txt +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/Pipfile +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/Pipfile.lock +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/README.md +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/RULE_ROLLOUT.md +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/SECURITY.md +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/Taskfile.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/package-lock.json +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/package.json +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/pylintrc +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/pyproject.toml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/pyproject.toml.tpl +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/settings.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/__init__.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/actions.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/cli.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/default_actions.json +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/default_settings.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/lint.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/load.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/models/__init__.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/models/job.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/models/step.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/models/workflow.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rule.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/check_pr_target.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/name_capitalized.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/name_exists.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/permissions_exist.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/step_approved.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/step_pinned.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/rules/underscore_outputs.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/src/bitwarden_workflow_linter/utils.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/__init__.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/conftest.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test-alt.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test-min-incorrect.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test-min.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test-outputs-incorrect.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test.yml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test_a.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test_workflow.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test_workflow_incorrect.yaml +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_check_pr_target.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_name_capitalized.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_name_exists.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_permissions_exist.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_run_actionlint.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_step_approved.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_step_pinned.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/test_underscore_output.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_job.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_lint.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_load.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_rule.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_step.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_utils.py +0 -0
- {bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_workflow.py +0 -0
@@ -7,5 +7,7 @@
|
|
7
7
|
# Default file owners
|
8
8
|
* @bitwarden/dept-bre
|
9
9
|
|
10
|
-
#
|
10
|
+
# AppSec owns default_actions and actionlint_version files
|
11
11
|
src/bitwarden_workflow_linter/default_actions.json @bitwarden/team-appsec
|
12
|
+
actionlint_version.json @bitwarden/team-appsec
|
13
|
+
|
@@ -19,5 +19,17 @@
|
|
19
19
|
"matchManagers": ["pipenv"],
|
20
20
|
"matchUpdateTypes": ["minor", "patch"]
|
21
21
|
}
|
22
|
+
],
|
23
|
+
"customManagers": [
|
24
|
+
{
|
25
|
+
"customType": "regex",
|
26
|
+
"fileMatch": ["^actionlint_version\\.json$"],
|
27
|
+
"matchStrings": [
|
28
|
+
"\"actionlint_version\":\\s*\"(?<currentValue>[^\"]+)\""
|
29
|
+
],
|
30
|
+
"depNameTemplate": "rhysd/actionlint",
|
31
|
+
"datasourceTemplate": "github-releases",
|
32
|
+
"versioningTemplate": "semver"
|
33
|
+
}
|
22
34
|
]
|
23
35
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: bitwarden_workflow_linter
|
3
|
-
Version: 0.12.
|
3
|
+
Version: 0.12.7
|
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
|
@@ -5,6 +5,7 @@ import subprocess
|
|
5
5
|
import platform
|
6
6
|
import urllib.request
|
7
7
|
import os
|
8
|
+
import json
|
8
9
|
|
9
10
|
from ..rule import Rule
|
10
11
|
from ..models.workflow import Workflow
|
@@ -33,11 +34,22 @@ def install_actionlint(platform_system: str) -> Tuple[bool, str]:
|
|
33
34
|
return False, f"{error} : check Choco installation"
|
34
35
|
return False, error
|
35
36
|
|
37
|
+
# temporarily commenting out this logic to allow time to troubleshoot it running in CI
|
38
|
+
# def load_config() -> dict:
|
39
|
+
# """Load configuration from a JSON file."""
|
40
|
+
# config_path = os.path.join(os.path.dirname(__file__), "../../../actionlint_version.json")
|
41
|
+
# if not os.path.exists(config_path):
|
42
|
+
# raise FileNotFoundError(f"Configuration file not found: {config_path}")
|
43
|
+
# with open(config_path, "r") as config_file:
|
44
|
+
# return json.load(config_file)
|
36
45
|
|
37
46
|
def install_actionlint_source(error) -> Tuple[bool, str]:
|
47
|
+
#config = load_config()
|
48
|
+
#if "actionlint_version" not in config:
|
49
|
+
# raise KeyError("The 'actionlint_version' is missing in the configuration file.")
|
50
|
+
version = "1.7.7"
|
38
51
|
"""Install Actionlint Binary from provided script"""
|
39
52
|
url = "https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash"
|
40
|
-
version = "1.6.17"
|
41
53
|
request = urllib.request.urlopen(url)
|
42
54
|
with open("download-actionlint.bash", "wb+") as fp:
|
43
55
|
fp.write(request.read())
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/cd.yml
RENAMED
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/ci.yml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/.github/workflows/scan.yml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test-alt.yml
RENAMED
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test-min.yaml
RENAMED
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test.yml
RENAMED
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/fixtures/test_a.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/rules/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.12.5 → bitwarden_workflow_linter-0.12.7}/tests/test_workflow.py
RENAMED
File without changes
|