-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/github_actions/actions/setup-pyth…
…on-5
- Loading branch information
Showing
34 changed files
with
1,047 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ jobs: | |
# requites to grab the history of the PR | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
- uses: pre-commit/[email protected].0 | ||
- uses: pre-commit/[email protected].1 | ||
with: | ||
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{^install_only}}{{^patch}}Install/{{/patch}}Update{{/install_only}}{{#install_only}}Install{{/install_only}}: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd"> | ||
<{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}> | ||
<Title>{{^patch}}Install/{{/patch}}Update: {{DisplayName}} v{{version}} - Windows{{#64BitOnly}} (x64){{/64BitOnly}}</Title> | ||
<Description><![CDATA[ | ||
This task will download and install "{{DisplayName}} v{{version}}" package onto selected endpoints <br><br><b>Run Command As:</b> System User<br><br><b>Download Size:</b> {{DownloadSize}} | ||
{{^patch}}{{#icon_base64}}<br/><br/><b>Icon:</b><br/><img style="display:block; width:256px;" src="data:{{icon_type}}{{^icon_type}}image/png{{/icon_type}};base64,{{icon_base64}}" />{{/icon_base64}}{{/patch}} | ||
]]></Description> | ||
<Relevance>windows of operating system</Relevance> | ||
{{#64BitOnly}} | ||
<Relevance><![CDATA[x64 of operating system]]></Relevance> | ||
{{/64BitOnly}} | ||
{{#patch}}{{#DisplayName}} | ||
<Relevance><![CDATA[ exists keys whose(value "DisplayName" of it as string starts with "{{DisplayName}}") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries) ]]></Relevance> | ||
{{/DisplayName}}{{/patch}} | ||
<Relevance><![CDATA[not exists (it as string as version) whose(it >= "{{version}}") of values "DisplayVersion" of keys whose(value "DisplayName" of it as string starts with "{{DisplayName}}") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries)]]></Relevance> | ||
<Category></Category> | ||
<DownloadSize>{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}</DownloadSize> | ||
<Source>{{DisplayName}}</Source> | ||
<SourceID></SourceID> | ||
<SourceReleaseDate>{{SourceReleaseDate}}</SourceReleaseDate> | ||
<SourceSeverity></SourceSeverity> | ||
<CVENames></CVENames> | ||
<SANSID></SANSID> | ||
<MIMEField> | ||
<Name>action-ui-metadata</Name> | ||
<Value>{ {{#version}}"version":"{{version}}",{{/version}}"size":{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}{{^patch}}{{#icon_base64}},"icon":"data:{{icon_type}}{{^icon_type}}image/png{{/icon_type}};base64,{{icon_base64}}"{{/icon_base64}}{{/patch}} }</Value> | ||
</MIMEField> | ||
<MIMEField> | ||
<Name>x-fixlet-modification-time</Name> | ||
<Value>{{x-fixlet-modification-time}}</Value> | ||
</MIMEField> | ||
<Domain>BESC</Domain> | ||
<DefaultAction ID="Action1"> | ||
<Description> | ||
<PreLink>Click </PreLink> | ||
<Link>here</Link> | ||
<PostLink> to deploy {{DisplayName}} v{{version}}.</PostLink> | ||
</Description> | ||
<ActionScript MIMEType="application/x-Fixlet-Windows-Shell"><![CDATA[ | ||
// Download: | ||
{{{prefetch}}} | ||
// Install: | ||
override wait | ||
hidden=true | ||
completion=job | ||
wait msiexec.exe /i __Download\{{{file_name}}} /qn /norestart | ||
]]></ActionScript> | ||
<SuccessCriteria Option="OriginalRelevance"></SuccessCriteria> | ||
</DefaultAction> | ||
</{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}> | ||
</BES> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
Description: Generates a BigFix Task for ScreenConnect | ||
Identifier: com.github.jgstew.bigfix.ScreenConnect-Win | ||
Input: | ||
NAME: ScreenConnect-Win | ||
DisplayName: ScreenConnect | ||
# 64BitOnly: TRUE | ||
MinimumVersion: "2.3" | ||
ParentRecipe: com.github.jgstew.download.ScreenConnect-Win | ||
Process: | ||
- Processor: com.github.jgstew.SharedProcessors/BigFixPrefetchItem | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/BigFixSetupTemplateDictionary | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppendInput | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate | ||
Arguments: | ||
# use UNIX style paths so this works on Windows and non-Windows: | ||
template_file_path: ./ConnectWise/ScreenConnect-Win-Install_Update.bes.mustache | ||
content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%-InstallUpdate.bes" | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/BESImport | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/BigFixActioner | ||
|
||
# create update(patch) only content: | ||
- Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppend | ||
Arguments: | ||
append_key: "patch" | ||
append_value: true | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate | ||
Arguments: | ||
# template_file_path: "./%VendorFolder%/%NAME%-Win-Install_Update.bes.mustache" | ||
content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%-Update.bes" | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/BESImport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
Description: Downloads the latest ScreenConnect | ||
Identifier: com.github.jgstew.download.ScreenConnect-Win | ||
Input: | ||
NAME: ScreenConnect-Win | ||
DisplayName: ScreenConnect | ||
MinimumVersion: "2.3" | ||
Process: | ||
# get all versions found in this JSON doc: | ||
- Processor: URLTextSearcher | ||
Arguments: | ||
url: https://screenconnect.connectwise.com/download | ||
re_pattern: "(?P<url>https://.+?.cloudfront.net/ScreenConnect_.+?_Release.msi)" | ||
|
||
- Processor: URLDownloaderPython | ||
Arguments: | ||
filename: ScreenConnect_Release.msi | ||
download_version: "" | ||
COMPUTE_HASHES: True | ||
|
||
- Processor: EndOfCheckPhase | ||
|
||
# Get apparent SourceReleaseDate from MSI metadata: | ||
- Processor: com.github.jgstew.SharedProcessors/FileMsiGetInfoOLE | ||
|
||
# Get version number from MSI ProductVersion: | ||
- Processor: com.github.jgstew.SharedProcessors/FileMsiGetProperty | ||
|
||
# verify version is set correctly, at least major.minor: | ||
- Processor: com.github.jgstew.SharedProcessors/TextSearcher | ||
Arguments: | ||
input_string: "%version%" | ||
re_pattern: '^\d+\.\d+' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd"> | ||
<{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}> | ||
<Title>{{^patch}}Install/{{/patch}}Update: {{DisplayName}} v{{version}} - Windows{{#64BitOnly}} (x64){{/64BitOnly}}</Title> | ||
<Description><![CDATA[ | ||
This task will download and install "{{DisplayName}} v{{version}}" package onto selected endpoints <br><br><b>Run Command As:</b> System User<br><br><b>Download Size:</b> {{DownloadSize}} | ||
{{^patch}}{{#icon_base64}}<br/><br/><b>Icon:</b><br/><img style="display:block; width:256px;" src="data:{{icon_type}}{{^icon_type}}image/png{{/icon_type}};base64,{{icon_base64}}" />{{/icon_base64}}{{/patch}} | ||
]]></Description> | ||
<Relevance>windows of operating system</Relevance> | ||
{{#64BitOnly}} | ||
<Relevance><![CDATA[x64 of operating system]]></Relevance> | ||
{{/64BitOnly}} | ||
<Relevance><![CDATA[ not exists login accounts whose(it does not end with "\ddagentuser") of services "datadogagent" ]]></Relevance> | ||
{{#patch}}{{#DisplayName}} | ||
<Relevance><![CDATA[ exists keys whose(value "DisplayName" of it as string starts with "{{DisplayName}}") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries) ]]></Relevance> | ||
{{/DisplayName}}{{/patch}} | ||
<Relevance><![CDATA[ | ||
not exists (it as string as version) whose(it >= "{{version}}") of values "DisplayVersion" of keys whose(value "DisplayName" of it as string starts with "{{DisplayName}}") of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries; x64 registries) | ||
]]></Relevance> | ||
<Category></Category> | ||
<DownloadSize>{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}</DownloadSize> | ||
<Source>{{DisplayName}}</Source> | ||
<SourceID></SourceID> | ||
<SourceReleaseDate>{{SourceReleaseDate}}</SourceReleaseDate> | ||
<SourceSeverity></SourceSeverity> | ||
<CVENames></CVENames> | ||
<SANSID></SANSID> | ||
<MIMEField> | ||
<Name>action-ui-metadata</Name> | ||
<Value>{ {{#version}}"version":"{{version}}",{{/version}}"size":{{DownloadSize}}{{^DownloadSize}}0{{/DownloadSize}}{{^patch}}{{#icon_base64}},"icon":"data:{{icon_type}}{{^icon_type}}image/png{{/icon_type}};base64,{{icon_base64}}"{{/icon_base64}}{{/patch}} }</Value> | ||
</MIMEField> | ||
<MIMEField> | ||
<Name>x-fixlet-modification-time</Name> | ||
<Value>{{x-fixlet-modification-time}}</Value> | ||
</MIMEField> | ||
<Domain>BESC</Domain> | ||
<DefaultAction ID="Action1"> | ||
<Description> | ||
<PreLink>Click </PreLink> | ||
<Link>here</Link> | ||
<PostLink> to deploy {{DisplayName}} v{{version}}.</PostLink> | ||
</Description> | ||
<ActionScript MIMEType="application/x-Fixlet-Windows-Shell"><![CDATA[ | ||
// Download: | ||
{{{prefetch}}} | ||
// Install: | ||
override wait | ||
hidden=true | ||
completion=job | ||
wait msiexec.exe /i __Download\{{{file_name}}} /qn /norestart | ||
]]></ActionScript> | ||
<SuccessCriteria Option="OriginalRelevance"></SuccessCriteria> | ||
</DefaultAction> | ||
</{{TypeTaskOrFixlet}}{{^TypeTaskOrFixlet}}Task{{/TypeTaskOrFixlet}}> | ||
</BES> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
Description: Generates a BigFix Task for the latest DataDog Agent | ||
Identifier: com.github.jgstew.bigfix.DataDog-Win | ||
Input: | ||
NAME: DataDogAgent-Win | ||
DisplayName: Datadog Agent | ||
64BitOnly: TRUE | ||
MinimumVersion: "2.3" | ||
ParentRecipe: com.github.jgstew.download.DataDog-Agent-Win | ||
Process: | ||
- Processor: com.github.jgstew.SharedProcessors/BigFixPrefetchItem | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/BigFixSetupTemplateDictionary | ||
# Arguments: | ||
# template_version: "%version_maximum%" | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppendInput | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate | ||
Arguments: | ||
# use UNIX style paths so this works on Windows and non-Windows: | ||
template_file_path: ./DataDog/DataDogAgent-Win-Install_Update.bes.mustache | ||
content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%-InstallUpdate.bes" | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/BESImport | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/BigFixActioner | ||
|
||
# create update(patch) only content: | ||
- Processor: com.github.jgstew.SharedProcessors/TemplateDictionaryAppend | ||
Arguments: | ||
append_key: "patch" | ||
append_value: true | ||
|
||
- Processor: com.github.jgstew.SharedProcessors/ContentFromTemplate | ||
Arguments: | ||
# template_file_path: "./%VendorFolder%/%NAME%-Win-Install_Update.bes.mustache" | ||
content_file_pathname: "%RECIPE_CACHE_DIR%/%NAME%-Update.bes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
Description: Downloads the latest DataDog Agent for Windows | ||
Identifier: com.github.jgstew.download.DataDog-Agent-Win | ||
Input: | ||
NAME: DataDog-Agent-Win | ||
DisplayName: Datadog Agent | ||
MinimumVersion: "2.3" | ||
Process: | ||
# get all versions found in this JSON doc: | ||
- Processor: com.github.jgstew.SharedProcessors/URLTextSearcherArray | ||
Arguments: | ||
url: https://ddagent-windows-stable.s3.amazonaws.com/installers_v2.json | ||
re_pattern: '(\d+\.\d+\.\d+)-' | ||
|
||
# get the maximum version: | ||
- Processor: com.github.jgstew.SharedProcessors/VersionMaximumArray | ||
|
||
- Processor: URLDownloaderPython | ||
Arguments: | ||
# %version_maximum% | ||
url: https://s3.amazonaws.com/ddagent-windows-stable/ddagent-cli-%version_maximum%.msi | ||
filename: datadog-agent-x86_64.msi | ||
download_version: "" | ||
COMPUTE_HASHES: True | ||
|
||
- Processor: EndOfCheckPhase | ||
|
||
# Get apparent SourceReleaseDate from MSI metadata: | ||
- Processor: com.github.jgstew.SharedProcessors/FileMsiGetInfoOLE | ||
|
||
# Get version number from MSI ProductVersion: | ||
- Processor: com.github.jgstew.SharedProcessors/FileMsiGetProperty | ||
|
||
# verify version is set correctly, at least major.minor: | ||
- Processor: com.github.jgstew.SharedProcessors/TextSearcher | ||
Arguments: | ||
input_string: "%version%" | ||
re_pattern: '^\d+\.\d+' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.