Skip to content

Commit 83df2f1

Browse files
chore: Fix various formatting issues for galaxy submission
1 parent f0c1b25 commit 83df2f1

9 files changed

Lines changed: 231 additions & 229 deletions

File tree

.github/workflows/ci.yml

Lines changed: 74 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,74 @@
1-
name: CI
2-
3-
on:
4-
pull_request:
5-
branches: [ master ]
6-
7-
jobs:
8-
ansible-syntax:
9-
runs-on: ubuntu-latest
10-
name: Ansible Syntax Check
11-
12-
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
15-
16-
- name: Set up Python
17-
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
18-
with:
19-
python-version: '3.11'
20-
21-
- name: Install Ansible
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install ansible ansible-lint
25-
26-
- name: Install PAN-OS collection
27-
run: |
28-
ansible-galaxy collection install paloaltonetworks.panos
29-
30-
- name: Ansible syntax check
31-
run: |
32-
find playbooks -name "*.yml" -exec ansible-playbook --syntax-check {} \;
33-
34-
- name: Ansible lint
35-
run: |
36-
ansible-lint playbooks/
37-
38-
python-tests:
39-
runs-on: ubuntu-latest
40-
name: Python Filter Tests
41-
42-
steps:
43-
- name: Checkout code
44-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
45-
46-
- name: Set up Python
47-
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
48-
with:
49-
python-version: '3.11'
50-
51-
- name: Install dependencies
52-
run: |
53-
python -m pip install --upgrade pip
54-
pip install pytest
55-
56-
- name: Run custom filter tests
57-
run: |
58-
cd filter_plugins
59-
python -m pytest test_custom_filters.py -v
60-
61-
secrets-scan:
62-
runs-on: ubuntu-latest
63-
name: Secrets Scanning
64-
65-
steps:
66-
- name: Checkout code
67-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
68-
with:
69-
70-
fetch-depth: 0
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
ansible-syntax:
9+
runs-on: ubuntu-latest
10+
name: Ansible Syntax Check
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install Ansible
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install ansible ansible-lint
25+
26+
- name: Install PAN-OS collection
27+
run: |
28+
ansible-galaxy collection install paloaltonetworks.panos
29+
30+
- name: Ansible syntax check
31+
run: |
32+
find playbooks -name "*.yml" -exec ansible-playbook --syntax-check {} \;
33+
34+
- name: Ansible lint
35+
run: |
36+
ansible-lint playbooks/
37+
38+
- name: Ansible Sanity Check
39+
run: |
40+
ansible-test sanity
41+
42+
python-tests:
43+
runs-on: ubuntu-latest
44+
name: Python Filter Tests
45+
46+
steps:
47+
- name: Checkout code
48+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
49+
50+
- name: Set up Python
51+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
52+
with:
53+
python-version: '3.11'
54+
55+
- name: Install dependencies
56+
run: |
57+
python -m pip install --upgrade pip
58+
pip install pytest
59+
60+
- name: Run custom filter tests
61+
run: |
62+
cd filter_plugins
63+
python -m pytest test_custom_filters.py -v
64+
65+
secrets-scan:
66+
runs-on: ubuntu-latest
67+
name: Secrets Scanning
68+
69+
steps:
70+
- name: Checkout code
71+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
72+
with:
73+
74+
fetch-depth: 0

.github/workflows/release.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
name: Release
2-
3-
on:
4-
push:
5-
branches: [ master ]
6-
7-
permissions:
8-
contents: write
9-
issues: write
10-
pull-requests: write
11-
12-
jobs:
13-
release:
14-
runs-on: ubuntu-latest
15-
name: Create Release
16-
17-
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
20-
with:
21-
fetch-depth: 0
22-
token: ${{ secrets.GITHUB_TOKEN }}
23-
24-
- name: Set up Node.js
25-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
26-
with:
27-
node-version: '18'
28-
29-
- name: Install semantic-release
30-
run: |
31-
npm install -g semantic-release
32-
npm install -g @semantic-release/changelog
33-
npm install -g @semantic-release/git
34-
npm install -g @semantic-release/github
35-
npm install -g @semantic-release/commit-analyzer
36-
npm install -g @semantic-release/release-notes-generator
37-
38-
- name: Run semantic-release
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
42-
run: semantic-release
43-
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
name: Create Release
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
20+
with:
21+
fetch-depth: 0
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Set up Node.js
25+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
26+
with:
27+
node-version: '18'
28+
29+
- name: Install semantic-release
30+
run: |
31+
npm install -g semantic-release
32+
npm install -g @semantic-release/changelog
33+
npm install -g @semantic-release/git
34+
npm install -g @semantic-release/github
35+
npm install -g @semantic-release/commit-analyzer
36+
npm install -g @semantic-release/release-notes-generator
37+
38+
- name: Run semantic-release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
42+
run: semantic-release
43+

.releaserc.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
{
2-
"branches": ["master"],
3-
"plugins": [
4-
"@semantic-release/commit-analyzer",
5-
"@semantic-release/release-notes-generator",
6-
"@semantic-release/changelog",
7-
[
8-
"@semantic-release/git",
9-
{
10-
"assets": ["CHANGELOG.md"],
11-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12-
}
13-
],
14-
"@semantic-release/github"
15-
]
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/changelog",
7+
[
8+
"@semantic-release/git",
9+
{
10+
"assets": ["CHANGELOG.md"],
11+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12+
}
13+
],
14+
"@semantic-release/github"
15+
]
1616
}

LICENSE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Copyright (c) 2025 abaumeister
2-
3-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4-
5-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6-
1+
Copyright (c) 2025 abaumeister
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
77
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

example_vars_file_add_new.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
source_ip: 110.33.122.75
2-
destination_ip: 10.10.10.5
1+
source_ip: 110.33.122.75
2+
destination_ip: 10.10.10.5
33
application: ssh
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
source_ip: 10.10.10.11
2-
destination_ip: 8.8.8.8
1+
source_ip: 10.10.10.11
2+
destination_ip: 8.8.8.8
33
application: dns

0 commit comments

Comments
 (0)