bitwarden_workflow_linter 0.7.0__tar.gz → 0.7.1__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.7.0 → bitwarden_workflow_linter-0.7.1}/.github/CODEOWNERS +3 -0
- bitwarden_workflow_linter-0.7.0/.github/workflows/update_actions.yml → bitwarden_workflow_linter-0.7.1/.github/workflows/bwwl_operations.yml +47 -26
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/PKG-INFO +1 -1
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/__about__.py +1 -1
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.editorconfig +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.gitattributes +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/renovate.json +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/workflows/_version_type.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/workflows/cd.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/workflows/ci.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/workflows/enforce-labels.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/workflows/scan.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.gitignore +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.husky/pre-commit +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.python-version +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/CONTRIBUTING.md +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/LICENSE.txt +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/Pipfile +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/Pipfile.lock +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/README.md +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/SECURITY.md +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/Taskfile.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/package-lock.json +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/package.json +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/pylintrc +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/pyproject.toml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/pyproject.toml.tpl +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/settings.yaml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/__init__.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/actions.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/cli.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/default_actions.json +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/default_settings.yaml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/lint.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/load.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/models/__init__.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/models/job.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/models/step.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/models/workflow.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rule.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/check_pr_target.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/name_capitalized.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/name_exists.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/run_actionlint.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/step_approved.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/step_pinned.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/rules/underscore_outputs.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/src/bitwarden_workflow_linter/utils.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/__init__.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/conftest.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test-alt.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test-min-incorrect.yaml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test-min.yaml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test-outputs-incorrect.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test.yml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test_a.yaml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test_workflow.yaml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test_workflow_incorrect.yaml +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_check_pr_target.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_name_capitalized.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_name_exists.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_run_actionlint.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_step_approved.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_step_pinned.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_underscore_output.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/test_job.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/test_lint.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/test_load.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/test_rule.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/test_step.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/test_utils.py +0 -0
- {bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/test_workflow.py +0 -0
@@ -1,14 +1,30 @@
|
|
1
|
-
name:
|
1
|
+
name: Approved actions operations
|
2
2
|
|
3
3
|
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
inputs:
|
6
|
+
operation:
|
7
|
+
description: 'Operation to perform. ex: update, add'
|
8
|
+
required: true
|
9
|
+
type: string
|
10
|
+
action:
|
11
|
+
description: 'Single action to add. ex: actions/checkout'
|
12
|
+
required: false
|
13
|
+
type: string
|
4
14
|
schedule:
|
5
|
-
- cron: '0 0
|
15
|
+
- cron: '0 0 1 * *'
|
6
16
|
|
7
17
|
jobs:
|
8
|
-
actions-
|
9
|
-
name: "
|
18
|
+
actions-operation:
|
19
|
+
name: "Approved actions operations"
|
10
20
|
runs-on: ubuntu-24.04
|
21
|
+
env:
|
22
|
+
_ACTION: ${{ inputs.action }}
|
11
23
|
steps:
|
24
|
+
- name: Check for action input
|
25
|
+
if: ${{ inputs.operation == 'add' && !env._ACTION }}
|
26
|
+
run: echo "Action input is required for operation 'add'" && exit 1
|
27
|
+
|
12
28
|
- name: Login to Azure - CI Subscription
|
13
29
|
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
|
14
30
|
with:
|
@@ -22,6 +38,9 @@ jobs:
|
|
22
38
|
secrets: "github-gpg-private-key,
|
23
39
|
github-gpg-private-key-passphrase"
|
24
40
|
|
41
|
+
- name: Checkout Branch
|
42
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
43
|
+
|
25
44
|
- name: Import GPG key
|
26
45
|
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6.2.0
|
27
46
|
with:
|
@@ -35,9 +54,6 @@ jobs:
|
|
35
54
|
git config --local user.email "106330231+bitwarden-devops-bot@users.noreply.github.com"
|
36
55
|
git config --local user.name "bitwarden-devops-bot"
|
37
56
|
|
38
|
-
- name: Checkout Branch
|
39
|
-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
40
|
-
|
41
57
|
- name: Set up Python 3.11
|
42
58
|
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
43
59
|
with:
|
@@ -47,16 +63,30 @@ jobs:
|
|
47
63
|
run: python -m pip install --upgrade bitwarden_workflow_linter
|
48
64
|
|
49
65
|
- name: Create Branch
|
66
|
+
if: ${{ github.events_name == 'schedule' }} || ${{ inputs.operation == 'update' }}
|
50
67
|
id: create-branch
|
51
68
|
run: |
|
52
69
|
NAME="update-actions-$(date +'%Y%m%d-%H%M%S')"
|
53
70
|
git switch -c $NAME
|
54
71
|
echo "name=$NAME" >> $GITHUB_OUTPUT
|
55
72
|
|
73
|
+
- name: Create Branch
|
74
|
+
if: ${{ inputs.operation == 'add' }}
|
75
|
+
id: create-branch
|
76
|
+
run: |
|
77
|
+
NAME= "add-action-$_ACTION"
|
78
|
+
git switch -c $NAME
|
79
|
+
echo "name=$NAME" >> $GITHUB_OUTPUT
|
80
|
+
|
56
81
|
- name: Run bwwl update
|
82
|
+
if: ${{ github.events_name == 'schedule' }} || ${{ inputs.operation == 'update' }}
|
57
83
|
run: bwwl actions update -o src/bitwarden_workflow_linter/default_actions.json
|
58
84
|
|
59
|
-
- name:
|
85
|
+
- name: Run bwwl add
|
86
|
+
if: ${{ inputs.operation == 'add' }}
|
87
|
+
run: bwwl actions add -o src/bitwarden_workflow_linter/default_actions.json "$_ACTION"
|
88
|
+
|
89
|
+
- name: Check for changes to commit
|
60
90
|
id: new-changes
|
61
91
|
run: |
|
62
92
|
if [ -n "$(git status --porcelain)" ]; then
|
@@ -67,15 +97,15 @@ jobs:
|
|
67
97
|
fi
|
68
98
|
|
69
99
|
- name: Commit changes
|
70
|
-
if: steps.new-changes.outputs.new_changes == 'TRUE'
|
100
|
+
if: ${{ steps.new-changes.outputs.new_changes == 'TRUE' }}
|
71
101
|
env:
|
72
|
-
|
102
|
+
_PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
73
103
|
run: |
|
74
104
|
git commit -m "Update approved actions" -a
|
75
|
-
git push origin $
|
105
|
+
git push origin "$_PR_BRANCH"
|
76
106
|
|
77
107
|
- name: Generate GH App token
|
78
|
-
if: steps.new-changes.outputs.new_changes == 'TRUE'
|
108
|
+
if: ${{ steps.new-changes.outputs.new_changes == 'TRUE' }}
|
79
109
|
uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
|
80
110
|
id: app-token
|
81
111
|
with:
|
@@ -84,16 +114,16 @@ jobs:
|
|
84
114
|
owner: ${{ github.repository_owner }}
|
85
115
|
|
86
116
|
- name: Create PR
|
87
|
-
if: steps.new-changes.outputs.new_changes == 'TRUE'
|
117
|
+
if: ${{ steps.new-changes.outputs.new_changes == 'TRUE' }}
|
88
118
|
id: create-pr
|
89
119
|
env:
|
90
120
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
91
|
-
|
92
|
-
|
121
|
+
_PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
122
|
+
_TITLE: "Update/Add bwwl approved actions"
|
93
123
|
run: |
|
94
|
-
PR_URL=$(gh pr create --title "$
|
124
|
+
PR_URL=$(gh pr create --title "$_TITLE" \
|
95
125
|
--base "main" \
|
96
|
-
--head "$
|
126
|
+
--head "$_PR_BRANCH" \
|
97
127
|
--label "version:patch" \
|
98
128
|
--label "automated pr" \
|
99
129
|
--body "
|
@@ -107,12 +137,3 @@ jobs:
|
|
107
137
|
## Description
|
108
138
|
- This PR updates the approved actions for the Bitwarden Workflow Linter.")
|
109
139
|
echo "pr_number=${PR_URL##*/}" >> $GITHUB_OUTPUT
|
110
|
-
|
111
|
-
- name: Approve and Merge PR
|
112
|
-
if: ${{ steps.create-pr.outcome == 'success' }}
|
113
|
-
env:
|
114
|
-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
115
|
-
PR_NUMBER: ${{ steps.create-pr.outputs.pr_number }}
|
116
|
-
run: |
|
117
|
-
gh pr review $PR_NUMBER --approve
|
118
|
-
gh pr merge $PR_NUMBER --squash --auto --delete-branch
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: bitwarden_workflow_linter
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.1
|
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
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/PULL_REQUEST_TEMPLATE.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/workflows/cd.yml
RENAMED
File without changes
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.github/workflows/ci.yml
RENAMED
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/.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
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test-alt.yml
RENAMED
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/fixtures/test-min.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/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-0.7.0 → bitwarden_workflow_linter-0.7.1}/tests/rules/test_name_exists.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.7.0 → bitwarden_workflow_linter-0.7.1}/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
|