Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
439 commits
Select commit Hold shift + click to select a range
8ed5677
new release
jgstew Feb 12, 2025
c7ebed9
add example for relay info
jgstew Feb 18, 2025
349868d
add print statement note
jgstew Feb 18, 2025
12daf37
add end session statement
jgstew Feb 20, 2025
adb946a
add relaynameoverride setting inspection
jgstew Feb 20, 2025
6e84ce3
add last report time filter
jgstew Feb 20, 2025
638a319
tweak comments
jgstew Feb 20, 2025
e849f7c
tweak example
jgstew Feb 20, 2025
9359bcb
fix logging method, get masthead parameters
jgstew Feb 20, 2025
1ea0353
add comment
jgstew Feb 20, 2025
c3e4199
add more info checks
jgstew Feb 21, 2025
66d4771
switch example to use plugin or config file for besapi creds
jgstew Feb 21, 2025
65c7a1c
first step for action monitor
jgstew Feb 24, 2025
5e5b39a
monitoring is working
jgstew Feb 24, 2025
1716a34
improve comments and logging
jgstew Feb 24, 2025
6377a69
handle missing success criteria
jgstew Feb 25, 2025
6864da8
add use case for custom relevance success criteria, simplify use of g…
jgstew Feb 25, 2025
54787b7
handle fixlet success criteria better
jgstew Feb 25, 2025
84c0a64
refactor action_and_monitor into function
jgstew Feb 25, 2025
2daa190
add example content
jgstew Feb 25, 2025
c6f202c
refactoring into functions action_and_monitor
jgstew Feb 25, 2025
9b6c2b4
add example usage comment
jgstew Feb 25, 2025
af91865
tweak logging info order
jgstew Feb 25, 2025
608340d
add typing for function input
jgstew Feb 25, 2025
ab85ea9
handle target xml
jgstew Feb 25, 2025
392fe20
add relay computer id to output
jgstew Feb 25, 2025
a65e366
some tweaks for targeting
jgstew Feb 25, 2025
116abc1
add example
jgstew Feb 25, 2025
f648dc5
rename example
jgstew Feb 25, 2025
1a7d15e
tweak comment
jgstew Feb 25, 2025
4d3a306
remove comment
jgstew Feb 25, 2025
075a7ff
tweak comments
jgstew Feb 25, 2025
089b59c
tweak logging level
jgstew Feb 26, 2025
452060b
add relay affiliation to relay info
jgstew Feb 26, 2025
7a43b6f
tweak relay select
jgstew Feb 26, 2025
66ff248
add ability to do single action
jgstew Feb 26, 2025
54456b9
add client seek list info
jgstew Feb 26, 2025
3115ba6
handle edge cases in targeting xml
jgstew Feb 28, 2025
35b1066
add boilerplate code to allow session relevance from file to take com…
jgstew Feb 28, 2025
8684a18
update pre-commit config
jgstew Feb 28, 2025
7cc9239
add manual workflow for harper cli grammar checker (#4)
jgstew Mar 2, 2025
f1ad33d
add "typos" pre-commit hook (#5)
jgstew Mar 2, 2025
fa01b85
add pre-commit python version
jgstew Mar 2, 2025
5570e68
add new functions to besapi and new tests
jgstew Mar 2, 2025
87028ce
update tag and release
jgstew Mar 3, 2025
aab746e
fix action
jgstew Mar 3, 2025
6ae7ae8
fix set output fix
jgstew Mar 3, 2025
9c68c17
improve pre-commit and test tag and release changes
jgstew Mar 3, 2025
3dce823
attempt more of a fix
jgstew Mar 3, 2025
1a9a366
remove forced fail for testing
jgstew Mar 3, 2025
85683f4
create new release
jgstew Mar 3, 2025
3ccbad9
fix typos, remove not working misspell action
jgstew Mar 3, 2025
b457bca
add example to validate bes xml
jgstew Mar 3, 2025
79af124
tweak validate bes
jgstew Mar 3, 2025
bd4b959
tweak xml validation
jgstew Mar 3, 2025
594a669
add better validation options
jgstew Mar 5, 2025
b538e90
rename the newer more complicated export all sites.
jgstew Mar 6, 2025
753feb8
adding back my simplified export all sites example
jgstew Mar 6, 2025
212297e
add error handling
jgstew Mar 6, 2025
f561114
update pylint rules
jgstew Mar 11, 2025
27e381f
add flake8 check, fix issues.
jgstew Mar 11, 2025
4e425a1
add unused hook
jgstew Mar 11, 2025
5e59a15
remove checks that are now handled by pre-commit
jgstew Mar 11, 2025
32bb128
tweak grammar check action
jgstew Mar 11, 2025
fb64bdf
add help output
jgstew Mar 11, 2025
8211904
tweak action
jgstew Mar 11, 2025
b142057
add mypy check
jgstew Mar 11, 2025
a5309ca
set mypy to only run pre-push or manual
jgstew Mar 11, 2025
bf5226a
manual hook stage to github action
jgstew Mar 11, 2025
6dfbb9f
fixes for pydocstringformatter
jgstew Mar 11, 2025
4f73d38
add codespell
jgstew Mar 11, 2025
deeac76
add pyroma check and fixes
jgstew Mar 11, 2025
218072f
add black disabled checker hook, remove unused imports
jgstew Mar 11, 2025
7c15b3f
add and update pre-commit hooks and fixes
jgstew Mar 11, 2025
cb7523a
add missing setuptools dependency
jgstew Mar 11, 2025
21822fe
new release
jgstew Mar 11, 2025
dc3529b
fix tag and release
jgstew Mar 11, 2025
2e2ac33
test fix
jgstew Mar 11, 2025
56802aa
fix version format
jgstew Mar 11, 2025
d97157c
migrate to setup.cfg from setup.py
jgstew Mar 12, 2025
3a20d4f
add validation xsd tests
jgstew Mar 12, 2025
0e63b16
add comment
jgstew Mar 12, 2025
bcdd8b3
add missing pre-commit hook
jgstew Mar 12, 2025
10f8fa1
add pre-commit hook and fixes
jgstew Mar 12, 2025
7806c98
fix tests
jgstew Mar 12, 2025
862980d
test adding test again
jgstew Mar 12, 2025
9ee0dd7
update readme
jgstew Mar 12, 2025
8b1ef5c
add python version file
jgstew Mar 12, 2025
193b173
tweak pre-commit file
jgstew Mar 14, 2025
7ecd806
add pre-commit hooks, add pytest
jgstew Mar 14, 2025
9d2cff5
add doctest example
jgstew Mar 14, 2025
9af2a34
add example and tests
jgstew Mar 17, 2025
7ef1000
add pytest check
jgstew Mar 17, 2025
04c29e9
create failing validation test example
jgstew Mar 17, 2025
097b8a5
change the way lxml is referenced, improve tests
jgstew Mar 17, 2025
c3dfe39
add subprocess
jgstew Mar 17, 2025
1db17ed
remove bad item
jgstew Mar 18, 2025
890149e
Improve logging
jgstew Mar 18, 2025
1b12ba4
Fix typo in documentation and add error handling in action and monito…
jgstew Mar 18, 2025
e9d4367
tweaks
jgstew Mar 18, 2025
613907a
add check for nothing to commit
jgstew Mar 18, 2025
9257e2a
move check
jgstew Mar 18, 2025
db13bab
add new example
jgstew Mar 19, 2025
1e4a7ca
some pylint fixes, add new pre-commit check
jgstew Mar 19, 2025
696d132
add pytest pre-commit hook
jgstew Mar 19, 2025
55b440b
handle getting filename from URL if it has ? in it
jgstew Mar 19, 2025
464d3db
code moved
jgstew Mar 24, 2025
c1d03d5
add comments
jgstew Mar 26, 2025
65b3ccb
add example
jgstew Mar 27, 2025
9095323
improve json to json session relevance example
jgstew Apr 15, 2025
799a6d2
add new session relevance functions and tests
jgstew Apr 15, 2025
f35aed5
add comment
jgstew Apr 15, 2025
1afccdd
update example script to use the new function
jgstew Apr 15, 2025
69db61d
remove unused import
jgstew Apr 15, 2025
3e90a6b
add checks
jgstew Apr 15, 2025
e23b961
get results from array
jgstew Aug 14, 2025
8fdd9b2
tweak formatting
jgstew Aug 14, 2025
c83e9d3
add iteration and averaging
jgstew Aug 14, 2025
28ba595
improve output formatting
jgstew Aug 14, 2025
d7ad855
change character length
jgstew Aug 14, 2025
3e6374f
set default iterations to 1
jgstew Aug 14, 2025
ab7ed81
add sleep between api calls
jgstew Aug 14, 2025
54092de
add comment
jgstew Aug 14, 2025
867c328
Baseline plugin autoremediate (#7)
jgstew Aug 28, 2025
102407f
add option to allow superseded eval
jgstew Aug 28, 2025
88c58f8
test ubuntu pyinstaller build of baseline_plugin
jgstew Aug 28, 2025
b718f87
fix action
jgstew Aug 28, 2025
91b39fc
fix baselineplugin build
jgstew Aug 28, 2025
f0e12cf
add arm builds
jgstew Aug 28, 2025
02e7f86
fix builds
jgstew Aug 28, 2025
2811b05
fix build baseline
jgstew Aug 28, 2025
86ce274
fix build upload
jgstew Aug 28, 2025
4b5f2c6
try windows build
jgstew Aug 28, 2025
3cae008
try windows only build
jgstew Aug 28, 2025
f761208
fix build for win
jgstew Aug 28, 2025
e282664
fix win build
jgstew Aug 28, 2025
b214951
fix cmd for win
jgstew Aug 28, 2025
b66feb8
fix win build
jgstew Aug 28, 2025
d5876a7
add back linux builds
jgstew Aug 28, 2025
dff3db6
fix ubuntu arm build
jgstew Aug 28, 2025
0e249dc
fix artifact .zip.zip naming when downloaded
jgstew Aug 28, 2025
880abda
refining baseline plugin
jgstew Aug 28, 2025
cebe9fe
rename delete task by id
jgstew Aug 28, 2025
9002feb
simplify baseline_plugin
jgstew Aug 28, 2025
7e6d1f8
test new build oses
jgstew Aug 28, 2025
989e360
output computer group members to files
jgstew Aug 29, 2025
79eabd6
minor tweaks, bump version
jgstew Aug 29, 2025
2d56fbe
test using artifact
jgstew Aug 29, 2025
f4c6fbe
test running plugin help
jgstew Aug 29, 2025
309f077
fix use artifact
jgstew Aug 29, 2025
21e8e3e
test build on win11 arm
jgstew Aug 29, 2025
f8fd20a
test just 1 build and running it separate.
jgstew Aug 29, 2025
0528776
test on RHEL
jgstew Aug 29, 2025
c719602
test install unzip redhat
jgstew Aug 29, 2025
4bc27a7
fix install command
jgstew Aug 29, 2025
6e5111e
try to fix rhel test
jgstew Aug 29, 2025
3b7996c
test older ubuntu build
jgstew Aug 29, 2025
eeecbfd
fix ubuntu run version
jgstew Aug 29, 2025
b9448cd
test on rhel8 and 9
jgstew Aug 29, 2025
8700bc7
try older python for older glibc
jgstew Aug 29, 2025
e3a161c
add separate rhel build
jgstew Aug 29, 2025
32af86d
remove invalid check
jgstew Aug 29, 2025
fe583a8
try python 3.12 for rhel build
jgstew Aug 29, 2025
d6c4888
try older python
jgstew Aug 29, 2025
5a41cf1
try removing pip step
jgstew Aug 29, 2025
db213a4
try builtin python rhel8
jgstew Aug 29, 2025
a66fcf4
add install python
jgstew Aug 29, 2025
33816ac
test install python rhel
jgstew Aug 29, 2025
fe2ac6a
install pip
jgstew Aug 29, 2025
418801e
fix pyinstaller issue
jgstew Aug 29, 2025
ac10eb5
try installing python3 differently
jgstew Aug 29, 2025
94802e7
try python 3.13
jgstew Aug 29, 2025
67734aa
try rbi9 build
jgstew Aug 29, 2025
f091380
try python3.12
jgstew Aug 29, 2025
ff6e7e3
switch back to ubi8 for RHEL builds
jgstew Aug 29, 2025
dead664
add ubuntu test
jgstew Aug 29, 2025
ff4de75
fix ubuntu unzip
jgstew Aug 29, 2025
9bd0124
fix ubuntu unzip
jgstew Aug 29, 2025
51e7639
remove unused imports
jgstew Aug 29, 2025
596055e
add baseline sync plugin
jgstew Sep 3, 2025
af6a2b8
add build baseline_plugin_sync
jgstew Sep 3, 2025
14dd258
tweak output
jgstew Sep 4, 2025
f11e010
refactor into function
jgstew Sep 8, 2025
b1392bf
updated to work with multiple items
jgstew Sep 9, 2025
851889a
add support for analyses
jgstew Sep 9, 2025
bc0bcbc
add comment
jgstew Sep 9, 2025
dc981d5
add try block for permissions errors
jgstew Sep 9, 2025
c89823f
add support for items in actionsite
jgstew Sep 9, 2025
1e5177e
refactor into functions
jgstew Sep 9, 2025
2b1d296
tweak comment
jgstew Sep 9, 2025
0a0fce6
rename var
jgstew Sep 9, 2025
081d556
tweak urllib.parse usage
jgstew Sep 9, 2025
dd372fe
refactor to make easier to add different mime fields.
jgstew Sep 9, 2025
59ed64d
add type info, fix missing return.
jgstew Sep 9, 2025
e089cdd
make this able to run as a plugin
jgstew Sep 9, 2025
044e34b
improve comments
jgstew Sep 9, 2025
abb6262
tweak to 6 hours
jgstew Sep 9, 2025
866f7bb
add comments
jgstew Sep 9, 2025
c060102
Update setup_server_plugin_service.py
jgstew Sep 9, 2025
d4711da
Update fixlet_add_mime_field.py
jgstew Sep 10, 2025
8e1e4f1
add session relevance example to cover even more cases.
jgstew Sep 10, 2025
50cfb11
Update fixlet_add_mime_field.py
jgstew Sep 10, 2025
d0baa19
fix trigger
jgstew Sep 11, 2025
2d72c0e
add plugin_utilities_win (#8)
jgstew Sep 16, 2025
50f4162
add different ways to get bigfix connection
jgstew Sep 16, 2025
0659e92
fix type error for non windows
jgstew Sep 16, 2025
53fb016
improve tests
jgstew Sep 17, 2025
cf49afe
remove besapi version check
jgstew Sep 17, 2025
6601f5d
reorder tests, improve tests
jgstew Sep 17, 2025
243ae3c
fix mypy error
jgstew Sep 17, 2025
bb1dfb8
add more helper functions
jgstew Sep 17, 2025
a4915cf
fix type issue
jgstew Sep 17, 2025
e34245d
tweak session relevance tests
jgstew Sep 17, 2025
1f721d0
bump version
jgstew Sep 17, 2025
19331e5
Update fixlet_add_mime_field.py
jgstew Sep 17, 2025
693b560
Update fixlet_add_mime_field.py
jgstew Sep 17, 2025
fcfe638
Update fixlet_add_mime_field.py
jgstew Sep 17, 2025
8a3a145
fix pre-commit failure
jgstew Sep 17, 2025
12040a8
addressing some issues
jgstew Sep 18, 2025
a22f785
improve tests
jgstew Sep 18, 2025
f758e9c
fix action warning
jgstew Sep 18, 2025
349fc2a
improve tests
jgstew Sep 18, 2025
28d0b71
new items in besapi.plugin_utilities
jgstew Sep 18, 2025
bb71a7d
fix missing import
jgstew Sep 18, 2025
bc5dd45
only import on windows
jgstew Sep 18, 2025
14ffbeb
publish new version
jgstew Sep 18, 2025
fb8e201
fix output for windows
jgstew Sep 18, 2025
dd7c123
tweak syntax
jgstew Sep 18, 2025
c747f36
tweak logging settings and computer group output
jgstew Sep 18, 2025
783a897
truncate debug output
jgstew Sep 18, 2025
bc771ff
refactor some logging
jgstew Sep 19, 2025
8cc2489
switch output to JSON, change logging
jgstew Sep 19, 2025
d067213
improve logging
jgstew Sep 19, 2025
dcea860
try to fix an issue
jgstew Sep 19, 2025
53f2779
improve docstrings
jgstew Sep 19, 2025
3692f08
release to fix dependency missing
jgstew Sep 19, 2025
97061a5
made some tweaks
jgstew Sep 19, 2025
4bac64d
tweak docs, logging, etc
jgstew Sep 19, 2025
ffaf5c2
tweak output
jgstew Sep 19, 2025
38323a7
add new function, tweak logging, release
jgstew Sep 19, 2025
056734a
fix perror
jgstew Sep 19, 2025
ebaf2b5
fix perror
jgstew Sep 19, 2025
04b8093
major update to besapi to support http adapter blocksize for uploads.
jgstew Sep 19, 2025
b574268
Release with faster uploads
jgstew Sep 19, 2025
9edbf42
add upload test
jgstew Sep 19, 2025
7672a43
fix upload test
jgstew Sep 19, 2025
0001bcb
improve test
jgstew Sep 19, 2025
3979369
new login function in besapi, and new login command in bescli
jgstew Sep 20, 2025
ff4f0a2
add more info to interactive login
jgstew Sep 20, 2025
97e373e
add tests for plus in session relevance
jgstew Oct 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Check http://editorconfig.org for more information
# This is the main config file for this project:
root = true

[*]
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
insert_final_newline = true

[*.py]
indent_size = 4

[*.{bes,bes.mustache}]
# bes files are XML, but the `actionscript` tag text must use crlf
end_of_line = crlf
indent_style = tab
indent_size = 3

[*.{bat,cmd}]
end_of_line = crlf
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ ignore = E127, E128, E203, E265, E266, E402, E501, E722, P207, P208, W503
exclude =
.git
__pycache__
examples
6 changes: 6 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[core]
hideDotFiles = true
[rebase]
autoStash = true
[pull]
rebase = true
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Set update schedule for GitHub Actions
version: 2

# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
# Add assignees
assignees:
- "jgstew"
1 change: 1 addition & 0 deletions .github/workflows/action-python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
27 changes: 0 additions & 27 deletions .github/workflows/black.yaml

This file was deleted.

213 changes: 213 additions & 0 deletions .github/workflows/build_baseline_plugin_sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
---
name: build_baseline_plugin_sync

on:
push:
paths:
- ".github/workflows/build_baseline_plugin_sync.yaml"
- "examples/baseline_sync_plugin.py"
branches:
- master

env:
script_name: baseline_sync_plugin

jobs:
build_baseline_plugin_sync:
# needs: build_baseline_plugin_rhel
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, windows-11-arm, ubuntu-24.04-arm]
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: update pip
run: python -m pip install --upgrade pip

- name: Install build tools
run: pip install --upgrade setuptools wheel build pyinstaller besapi

# - name: Install requirements
# shell: bash
# run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Read VERSION file
id: getversion
shell: bash
run: echo "$(python ./setup.py --version)"

- name: Run Tests - Source
run: python tests/tests.py

- name: Test pyinstaller build ${{ env.script_name }}
run: pyinstaller --clean --noconfirm --collect-all besapi ./examples/${{ env.script_name }}.py

- name: set executable
if: ${{ runner.os == 'Linux' }}
run: chmod +x ./dist/${{ env.script_name }}/${{ env.script_name }}

- name: test plugin help
run: ./dist/${{ env.script_name }}/${{ env.script_name }} --help

# - name: copy example config
# shell: bash
# run: cp ./examples/baseline_plugin.config.yaml ./dist/baseline_plugin/baseline_plugin.config.yaml

- name: create dist zip linux
if: ${{ runner.os == 'Linux' }}
shell: bash
run: cd dist/${{ env.script_name }} && zip -r -o ${{ env.script_name }}_dist_`uname -s`-`uname -m`.zip *

- name: create dist zip win
if: ${{ runner.os == 'Windows' }}
shell: pwsh
run: |
cd dist/${{ env.script_name }} && Compress-Archive -Path * -DestinationPath ${{ env.script_name }}_dist_Windows-$( ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture).ToString().ToLower() ).zip

- name: get zip name linux
if: ${{ runner.os == 'Linux' }}
id: get_zip_name_linux
shell: bash
run: echo "ZIP_NAME=${{ env.script_name }}_dist_`uname -s`-`uname -m`" >> $GITHUB_ENV

- name: get zip name windows
if: ${{ runner.os == 'Windows' }}
id: get_zip_name_win
shell: pwsh
run: |
$arch = ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture).ToString().ToLower()
$outputString = "ZIP_NAME=${{ env.script_name }}_dist_Windows-${arch}"
Add-Content -Path $env:GITHUB_ENV -Value $outputString

- name: upload built ${{ env.script_name }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ZIP_NAME }}
path: dist/${{ env.script_name }}/${{ env.script_name }}_dist_*.zip
if-no-files-found: error

build_baseline_plugin_rhel:
runs-on: ubuntu-24.04
container:
image: "redhat/ubi8:latest"
steps:
- uses: actions/checkout@v4

- name: Install Python3 and pyinstaller deps
run: dnf --assumeyes install python3.12 python3.12-pip binutils zip

- name: get python version
run: python3.12 --version

- name: update pip
run: python3.12 -m pip install --upgrade pip

- name: Install build tools
run: python3.12 -m pip install --upgrade setuptools wheel build pyinstaller besapi

# - name: Install requirements
# shell: bash
# run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Read VERSION file
id: getversion
shell: bash
run: echo "$(python3.12 ./setup.py --version)"

- name: Run Tests - Source
run: python3.12 tests/tests.py

- name: Test pyinstaller build baseline_sync_plugin
run: pyinstaller --clean --noconfirm --collect-all besapi ./examples/${{ env.script_name }}.py

- name: set executable
if: ${{ runner.os == 'Linux' }}
run: chmod +x ./dist/baseline_sync_plugin/baseline_sync_plugin

- name: test plugin help
run: ./dist/baseline_sync_plugin/baseline_sync_plugin --help

# - name: copy example config
# shell: bash
# run: cp ./examples/baseline_plugin.config.yaml ./dist/baseline_plugin/baseline_plugin.config.yaml

- name: Install zip command
run: dnf --assumeyes install zip

- name: create dist zip linux
if: ${{ runner.os == 'Linux' }}
shell: bash
run: cd dist/${{ env.script_name }} && zip -r -o ${{ env.script_name }}_dist_`uname -s`-`uname -m`.zip *

- name: create dist zip win
if: ${{ runner.os == 'Windows' }}
shell: pwsh
run: |
cd dist/${{ env.script_name }} && Compress-Archive -Path * -DestinationPath ${{ env.script_name }}_dist_Windows-$( ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture).ToString().ToLower() ).zip

- name: get zip name linux
if: ${{ runner.os == 'Linux' }}
id: get_zip_name_linux
shell: bash
run: echo "ZIP_NAME=${{ env.script_name }}_dist_`uname -s`-`uname -m`" >> $GITHUB_ENV

- name: get zip name windows
if: ${{ runner.os == 'Windows' }}
id: get_zip_name_win
shell: pwsh
run: |
$arch = ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture).ToString().ToLower()
$outputString = "ZIP_NAME=${{ env.script_name }}_dist_Windows-${arch}"
Add-Content -Path $env:GITHUB_ENV -Value $outputString

- name: upload built ${{ env.script_name }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ZIP_NAME }}
path: dist/${{ env.script_name }}/${{ env.script_name }}_dist_*.zip
if-no-files-found: error

test_baseline_plugin_rhel:
needs: build_baseline_plugin_rhel
runs-on: ubuntu-latest
strategy:
matrix:
container-image:
["redhat/ubi8:latest", "redhat/ubi9:latest", "ubuntu:latest"]
container:
image: ${{ matrix.container-image }}
steps:
- name: Download ${{ env.script_name }} artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.script_name }}_dist_Linux-x86_64
path: ./downloaded_artifact

- name: List downloaded files
run: ls -l ./downloaded_artifact

- name: Install unzip command
if: ${{ contains (matrix.container-image, 'redhat/ubi') }}
run: dnf --assumeyes install unzip

- name: Install unzip command
if: ${{ contains (matrix.container-image, 'ubuntu') }}
run: apt-get update && apt-get install -y unzip

# Example: Unzip and check contents
- name: Unzip artifact
run: unzip ./downloaded_artifact/${{ env.script_name }}_dist_Linux-x86_64.zip

- name: List files
run: ls -l .

- name: Test plugin help
run: ./${{ env.script_name }} --help
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/flake8.yaml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/grammar-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: grammar-check

on: workflow_dispatch

jobs:
grammar-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: x86_64-unknown-linux-gnu

- name: install harper grammar checker
run: cargo install --locked --git https://github.com/Automattic/harper.git --branch master --tag v0.23.0 harper-cli

- name: run harper-cli config
run: harper-cli config

- name: run harper-cli lint help
run: harper-cli lint --help

- name: run harper grammar checker
run: harper-cli lint src/besapi/besapi.py
32 changes: 0 additions & 32 deletions .github/workflows/isort.yaml

This file was deleted.

Loading
Loading