bitwarden_workflow_linter 0.3.1__tar.gz → 0.4.0__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.4.0/.github/workflows/update_actions.yml +118 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/PKG-INFO +1 -1
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/__about__.py +1 -1
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/default_actions.json +15 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.editorconfig +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.gitattributes +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/CODEOWNERS +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/renovate.json +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/workflows/_version_type.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/workflows/cd.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/workflows/ci.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/workflows/enforce-labels.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/workflows/scan.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.gitignore +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.husky/pre-commit +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.python-version +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/CONTRIBUTING.md +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/LICENSE.txt +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/Pipfile +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/Pipfile.lock +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/README.md +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/SECURITY.md +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/Taskfile.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/package-lock.json +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/package.json +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/pylintrc +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/pyproject.toml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/pyproject.toml.tpl +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/settings.yaml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/__init__.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/actions.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/cli.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/default_settings.yaml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/lint.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/load.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/models/__init__.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/models/job.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/models/step.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/models/workflow.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rule.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/name_capitalized.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/name_exists.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/step_approved.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/step_pinned.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/rules/underscore_outputs.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/src/bitwarden_workflow_linter/utils.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/__init__.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/conftest.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test-alt.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test-min-incorrect.yaml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test-min.yaml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test-outputs-incorrect.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test.yml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test_a.yaml +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/__init__.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_job_environment_prefix.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_name_capitalized.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_name_exists.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_pinned_job_runner.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_step_approved.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_step_pinned.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_underscore_output.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/test_job.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/test_lint.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/test_load.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/test_rule.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/test_step.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/test_utils.py +0 -0
- {bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/test_workflow.py +0 -0
@@ -0,0 +1,118 @@
|
|
1
|
+
name: Update Approved Actions
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: '0 0 */14 * *'
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
actions-update:
|
9
|
+
name: "Update Approved Actions"
|
10
|
+
runs-on: ubuntu-24.04
|
11
|
+
steps:
|
12
|
+
- name: Login to Azure - CI Subscription
|
13
|
+
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
|
14
|
+
with:
|
15
|
+
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
16
|
+
|
17
|
+
- name: Retrieve secrets
|
18
|
+
id: retrieve-secrets
|
19
|
+
uses: bitwarden/gh-actions/get-keyvault-secrets@main
|
20
|
+
with:
|
21
|
+
keyvault: "bitwarden-ci"
|
22
|
+
secrets: "github-gpg-private-key,
|
23
|
+
github-gpg-private-key-passphrase"
|
24
|
+
|
25
|
+
- name: Import GPG key
|
26
|
+
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6.2.0
|
27
|
+
with:
|
28
|
+
gpg_private_key: ${{ steps.retrieve-secrets.outputs.github-gpg-private-key }}
|
29
|
+
passphrase: ${{ steps.retrieve-secrets.outputs.github-gpg-private-key-passphrase }}
|
30
|
+
git_user_signingkey: true
|
31
|
+
git_commit_gpgsign: true
|
32
|
+
|
33
|
+
- name: Setup git
|
34
|
+
run: |
|
35
|
+
git config --local user.email "106330231+bitwarden-devops-bot@users.noreply.github.com"
|
36
|
+
git config --local user.name "bitwarden-devops-bot"
|
37
|
+
|
38
|
+
- name: Checkout Branch
|
39
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
40
|
+
|
41
|
+
- name: Set up Python 3.11
|
42
|
+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
43
|
+
with:
|
44
|
+
python-version: "3.11"
|
45
|
+
|
46
|
+
- name: Install bwwl binary
|
47
|
+
run: python -m pip install --upgrade bitwarden_workflow_linter
|
48
|
+
|
49
|
+
- name: Create Branch
|
50
|
+
id: create-branch
|
51
|
+
run: |
|
52
|
+
NAME="update-actions-$(date +'%Y%m%d-%H%M%S')"
|
53
|
+
git switch -c $NAME
|
54
|
+
echo "name=$NAME" >> $GITHUB_OUTPUT
|
55
|
+
|
56
|
+
- name: Run bwwl update
|
57
|
+
run: bwwl actions update -o src/bitwarden_workflow_linter/default_actions.json
|
58
|
+
|
59
|
+
- name: Check if there are changes to commit
|
60
|
+
id: new-changes
|
61
|
+
run: |
|
62
|
+
if [ -n "$(git status --porcelain)" ]; then
|
63
|
+
echo "new_changes=TRUE" >> $GITHUB_OUTPUT
|
64
|
+
else
|
65
|
+
echo "new_changes=FALSE" >> $GITHUB_OUTPUT
|
66
|
+
echo "No changes to commit!";
|
67
|
+
fi
|
68
|
+
|
69
|
+
- name: Commit changes
|
70
|
+
if: steps.new-changes.outputs.new_changes == 'TRUE'
|
71
|
+
env:
|
72
|
+
PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
73
|
+
run: |
|
74
|
+
git commit -m "Update approved actions" -a
|
75
|
+
git push origin $PR_BRANCH
|
76
|
+
|
77
|
+
- name: Generate GH App token
|
78
|
+
if: steps.new-changes.outputs.new_changes == 'TRUE'
|
79
|
+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
|
80
|
+
id: app-token
|
81
|
+
with:
|
82
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
83
|
+
private-key: ${{ secrets.GH_APP_KEY }}
|
84
|
+
owner: ${{ github.repository_owner }}
|
85
|
+
|
86
|
+
- name: Create PR
|
87
|
+
if: steps.new-changes.outputs.new_changes == 'TRUE'
|
88
|
+
id: create-pr
|
89
|
+
env:
|
90
|
+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
91
|
+
PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
92
|
+
TITLE: "Update bwwl Approved Actions"
|
93
|
+
run: |
|
94
|
+
PR_URL=$(gh pr create --title "$TITLE" \
|
95
|
+
--base "main" \
|
96
|
+
--head "$PR_BRANCH" \
|
97
|
+
--label "version:patch" \
|
98
|
+
--label "automated pr" \
|
99
|
+
--body "
|
100
|
+
## Type of change
|
101
|
+
- [ ] Bug fix
|
102
|
+
- [ ] New feature development
|
103
|
+
- [X] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
|
104
|
+
- [ ] Build/deploy pipeline (DevOps)
|
105
|
+
- [ ] Other
|
106
|
+
|
107
|
+
## Description
|
108
|
+
- This PR updates the approved actions for the Bitwarden Workflow Linter.")
|
109
|
+
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.
|
3
|
+
Version: 0.4.0
|
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
|
@@ -69,6 +69,11 @@
|
|
69
69
|
"sha": "e5bc658cc4c965c472efe991f8beea3981499c55",
|
70
70
|
"version": "v5.0.0"
|
71
71
|
},
|
72
|
+
"actions/deploy-pages": {
|
73
|
+
"name": "actions/deploy-pages",
|
74
|
+
"sha": "d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e",
|
75
|
+
"version": "v4.0.5"
|
76
|
+
},
|
72
77
|
"actions/download-artifact": {
|
73
78
|
"name": "actions/download-artifact",
|
74
79
|
"sha": "fa0a91b85d4f404e444e00e005971372dc801d16",
|
@@ -319,6 +324,11 @@
|
|
319
324
|
"sha": "485a9d42d3a73031f12ec201c457e2162c45d02d",
|
320
325
|
"version": "v2.0.0"
|
321
326
|
},
|
327
|
+
"sigstore/cosign-installer": {
|
328
|
+
"name": "sigstore/cosign-installer",
|
329
|
+
"sha": "dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da",
|
330
|
+
"version": "v3.7.0"
|
331
|
+
},
|
322
332
|
"snapcore/action-build": {
|
323
333
|
"name": "snapcore/action-build",
|
324
334
|
"sha": "3bdaa03e1ba6bf59a65f84a751d943d549a54e79",
|
@@ -334,6 +344,11 @@
|
|
334
344
|
"sha": "02ef91109b2d589e757aefcfb2854c2783fd7b19",
|
335
345
|
"version": "v4.0.0"
|
336
346
|
},
|
347
|
+
"sonarsource/sonarqube-scan-action": {
|
348
|
+
"name": "sonarsource/sonarqube-scan-action",
|
349
|
+
"sha": "bfd4e558cda28cda6b5defafb9232d191be8c203",
|
350
|
+
"version": "v4.2.1"
|
351
|
+
},
|
337
352
|
"stackrox/kube-linter-action": {
|
338
353
|
"name": "stackrox/kube-linter-action",
|
339
354
|
"sha": "5792edc6a03735d592b13c08201711327a935735",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/PULL_REQUEST_TEMPLATE.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/workflows/cd.yml
RENAMED
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.github/workflows/ci.yml
RENAMED
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/.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
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test-alt.yml
RENAMED
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test-min.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/fixtures/test_a.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/tests/rules/test_name_exists.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{bitwarden_workflow_linter-0.3.1 → bitwarden_workflow_linter-0.4.0}/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
|