bitwarden_workflow_linter 1.1.3__tar.gz → 1.1.5__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-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/bwwl_operations.yml +7 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/ci.yml +17 -4
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/PKG-INFO +1 -1
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/__about__.py +1 -1
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/cli.py +2 -2
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/default_actions.json +5 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.editorconfig +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.gitattributes +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/CODEOWNERS +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/actionlint.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/renovate.json +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/_version_type.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/actionlint_windows.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/cd.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/enforce-labels.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/ci.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/example-references/_build.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/example-references/_docker.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/example-references/_test.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/example-references/_version.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/example.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/pull_request_target.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/examples/scan.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/scan.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.gitignore +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.husky/pre-commit +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.python-version +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/CONTRIBUTING.md +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/LICENSE.txt +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/Pipfile +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/Pipfile.lock +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/README.md +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/RULE_ROLLOUT.md +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/SECURITY.md +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/Taskfile.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/package-lock.json +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/package.json +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/pylintrc +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/pyproject.toml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/pyproject.toml.tpl +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/settings.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/__init__.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/actionlint_version.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/actions.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/default_settings.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/lint.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/load.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/models/__init__.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/models/job.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/models/step.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/models/workflow.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rule.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/check_pr_target.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/name_capitalized.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/name_exists.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/permissions_exist.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/run_actionlint.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/step_approved.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/step_pinned.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/rules/underscore_outputs.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/src/bitwarden_workflow_linter/utils.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/__init__.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/conftest.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test-alt.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test-min-incorrect.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test-min.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test-outputs-incorrect.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test.yml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test_a.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test_workflow.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test_workflow_incorrect.yaml +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_check_pr_target.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_name_capitalized.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_name_exists.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_permissions_exist.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_run_actionlint.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_step_approved.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_step_pinned.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_underscore_output.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/test_job.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/test_lint.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/test_load.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/test_rule.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/test_step.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/test_utils.py +0 -0
- {bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/test_workflow.py +0 -0
@@ -18,6 +18,9 @@ jobs:
|
|
18
18
|
actions-operation:
|
19
19
|
name: "Approved actions operations"
|
20
20
|
runs-on: ubuntu-24.04
|
21
|
+
permissions:
|
22
|
+
contents: write
|
23
|
+
pull-requests: write
|
21
24
|
env:
|
22
25
|
_ACTION: ${{ inputs.action }}
|
23
26
|
steps:
|
@@ -78,10 +81,14 @@ jobs:
|
|
78
81
|
|
79
82
|
- name: Run bwwl update
|
80
83
|
if: ${{ github.event_name == 'schedule' || inputs.operation == 'update' }}
|
84
|
+
env:
|
85
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Avoid rate limiting
|
81
86
|
run: bwwl actions update -o src/bitwarden_workflow_linter/default_actions.json
|
82
87
|
|
83
88
|
- name: Run bwwl add
|
84
89
|
if: ${{ inputs.operation == 'add' }}
|
90
|
+
env:
|
91
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Avoid rate limiting
|
85
92
|
run: bwwl actions add -o src/bitwarden_workflow_linter/default_actions.json "$_ACTION"
|
86
93
|
|
87
94
|
- name: Check for changes to commit
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/ci.yml
RENAMED
@@ -36,6 +36,9 @@ jobs:
|
|
36
36
|
- name: Check type hinting
|
37
37
|
run: pipenv run pytype src
|
38
38
|
|
39
|
+
- name: Install local bwwl binary
|
40
|
+
run: pipenv run pip install -e .
|
41
|
+
|
39
42
|
- name: Test against example workflows
|
40
43
|
# run notes:
|
41
44
|
# - Changing directories will help catch any repo specific paths in the linter
|
@@ -43,7 +46,17 @@ jobs:
|
|
43
46
|
# - Changing directories utilizes the default_settings.yaml rather than this repos
|
44
47
|
# settings.yaml, which better simulates running from another repository
|
45
48
|
# - Using strict to ensure that our examples pass all checks including warnings
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
49
|
+
working-directory: .github/workflows
|
50
|
+
run: pipenv run bwwl lint --strict -f ./examples
|
51
|
+
|
52
|
+
- name: Test bwwl actions - add
|
53
|
+
env:
|
54
|
+
_ACTION: bitwarden/gh-actions
|
55
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Avoid rate limiting
|
56
|
+
run: pipenv run bwwl actions add -o src/bitwarden_workflow_linter/default_actions.json "$_ACTION"
|
57
|
+
|
58
|
+
# TODO: Add this test back in and added related error logging to fix the underlying issue
|
59
|
+
# - name: Test bwwl actions - update
|
60
|
+
# env:
|
61
|
+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Avoid rate limiting
|
62
|
+
# run: pipenv run bwwl actions update -o src/bitwarden_workflow_linter/default_actions.json
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: bitwarden_workflow_linter
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.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
|
@@ -36,9 +36,9 @@ def main(input_args: Optional[List[str]] = None) -> int:
|
|
36
36
|
raise SystemExit(parser.print_help())
|
37
37
|
|
38
38
|
args = parser.parse_args(input_args)
|
39
|
-
if len(args.files) > 1:
|
40
|
-
raise parser.error("Only one -f / --files flag must be specified")
|
41
39
|
if args.command == "lint":
|
40
|
+
if len(args.files) > 1:
|
41
|
+
raise parser.error("Only one -f / --files flag must be specified")
|
42
42
|
return linter_cmd.run(args.files[0], args.strict)
|
43
43
|
|
44
44
|
if args.command == "actions":
|
@@ -364,6 +364,11 @@
|
|
364
364
|
"sha": "a21f25cd3998bf370fde17e3f1b4c12c175172f9",
|
365
365
|
"version": "v2.0.0"
|
366
366
|
},
|
367
|
+
"opentofu/setup-opentofu": {
|
368
|
+
"name": "opentofu/setup-opentofu",
|
369
|
+
"sha": "592200bd4b9bbf4772ace78f887668b1aee8f716",
|
370
|
+
"version": "v1.0.5"
|
371
|
+
},
|
367
372
|
"peter-evans/close-issue": {
|
368
373
|
"name": "peter-evans/close-issue",
|
369
374
|
"sha": "276d7966e389d888f011539a86c8920025ea0626",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/PULL_REQUEST_TEMPLATE.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.github/workflows/cd.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
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/.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-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test-alt.yml
RENAMED
File without changes
|
File without changes
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test-min.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/fixtures/test_a.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_name_exists.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-1.1.3 → bitwarden_workflow_linter-1.1.5}/tests/rules/test_step_pinned.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
|