Skip to content

Commit c81c8a2

Browse files
authored
Merge pull request #20 from rebelinux/dev
v1.2.2
2 parents 4608a60 + 5b1bd6a commit c81c8a2

18 files changed

+348
-175
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
assignees:
6+
- tpcarman
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report :)
12+
- Kindly **DO NOT** ask for instructions.
13+
- Use [Discussions](https://github.com/orgs/AsBuiltReport/discussions) section if you have a query or doubts or any other relevant question.
14+
- You may join [Slack community](https://the-code-community.slack.com#asbuiltreport) to interact with fellow contributors and users
15+
- Read project's [Web Site](https://www.asbuiltreport.com/user-guide/installation/) for detailed documentation.
16+
- Read project's [FAQs](https://www.asbuiltreport.com/support/faq/) section for Frequently asked questions.
17+
- Search for previous [Issues](https://github.com/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement/issues)/[Pull Requests](https://github.com/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement/pulls) if this issue is already reported or fix has been created.
18+
- type: textarea
19+
id: bug-description
20+
attributes:
21+
label: Bug description
22+
description: >-
23+
Please provide a clear and concise description of the bug.
24+
validations:
25+
required: true
26+
- type: input
27+
id: command-line-input
28+
attributes:
29+
label: Command-line input
30+
description: >-
31+
Please provide the command line input you are using to run AsBuiltReport. Please ensure that you obscure any sensitive information.
32+
placeholder: New-AsBuiltReport -Report Nutanix.PrismElement -Target xxxxxxx -Format Word,HTML -OutputFolderPath .\Documents\ -AsBuiltConfigFilePath .\AsBuiltReport\AsBuiltReport.json -ReportConfigFilePath .\AsBuiltReport\AsBuiltReport.Nutanix.PrismElement.json -EnableHealthCheck -Verbose
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: steps-to-reproduce
37+
attributes:
38+
label: Steps to reproduce
39+
description: >-
40+
Please provide a detailed list of steps to reproduce the bug.
41+
placeholder: |-
42+
1. ....
43+
2. ....
44+
3. ....
45+
validations:
46+
required: true
47+
- type: textarea
48+
id: expected-behaviour
49+
attributes:
50+
label: Expected behaviour
51+
description: >-
52+
Please provide a clear and concise description of what you expected to happen.
53+
validations:
54+
required: true
55+
- type: textarea
56+
id: screenshots
57+
attributes:
58+
label: Screenshots
59+
description: >-
60+
Please attach any screenshots to help explain the problem. Please ensure that you obscure any sensitive information.
61+
placeholder: |-
62+
Drag and drop screenshots here.
63+
- type: textarea
64+
id: operating-system
65+
attributes:
66+
label: Operating System
67+
description: Please provide information about the operating system are you using.
68+
placeholder: macOS Big Sur, Windows 10, Ubuntu 20.04 LTS
69+
validations:
70+
required: true
71+
- type: textarea
72+
id: powershell-version
73+
attributes:
74+
label: PowerShell Version
75+
description: Please provide information about the PowerShell version you are using. Please provide the output from the following PowerShell command `$PSVersionTable`.
76+
placeholder: $PSVersionTable
77+
validations:
78+
required: true
79+
- type: textarea
80+
id: powershell-modules
81+
attributes:
82+
label: PowerShell Modules
83+
description: Please provide information about the PowerShell modules are you using. Please provide the output from the following PowerShell command `Get-Module -ListAvailable @("AsBuiltReport.Core";"PScribo") | Select Name, Version`
84+
placeholder: Get-Module -ListAvailable @("AsBuiltReport.Core";"PScribo") | Select Name, Version
85+
validations:
86+
required: true
87+
- type: textarea
88+
id: additional-context
89+
attributes:
90+
label: Additional Context
91+
description: This field is optional. You may provide additional context for the bug you wish to report. You may wish to include links to any related [issues](https://github.com/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement/issues) or other relevant information.
92+
- type: checkboxes
93+
id: checklist
94+
attributes:
95+
label: Before submitting
96+
description: >-
97+
Please ensure your bug report fulfills all of the following requirements.
98+
If you are unsure of what a specific requirement means, please follow the links to learn about it and understand why it is necessary before submitting.
99+
options:
100+
- label: >-
101+
I have read and followed the [bug reporting guidelines](https://www.asbuiltreport.com/about/contributing/#reporting-issues-and-bugs).
102+
required: true
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Change Request
2+
description: Request a new change or an improvement
3+
title: "[Change Request]: "
4+
labels: ["change request"]
5+
assignees:
6+
- rebelinux
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this enahancement form :)
12+
- Kindly **DO NOT** ask for instructions.
13+
- Use [Discussions](https://github.com/orgs/AsBuiltReport/discussions) section if you have a query or doubts or any other relevant question.
14+
- You may join [Slack community](https://the-code-community.slack.com#asbuiltreport) to interact with fellow contributors and users
15+
- Read project's [Web Site](https://www.asbuiltreport.com/user-guide/installation/) for detailed documentation.
16+
- Read project's [FAQs](https://www.asbuiltreport.com/support/faq/) section for Frequently asked questions.
17+
- Search for previous [Issues](https://github.com/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement/issues)/[Pull Requests](https://github.com/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement/pulls) if this issue is already reported or fix has been created.
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Description
22+
description: >-
23+
Please provide a detailed description of your idea so that the project maintainers and contributors can fully understand what change, feature, or improvement you are proposing.
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: additional-context
28+
attributes:
29+
label: Additional Context
30+
description: This field is optional. You may provide additional context for the idea you wish to propose. You may wish to include links to any related [issues](https://github.com/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement/issues) or other relevant information.
31+
- type: checkboxes
32+
id: checklist
33+
attributes:
34+
label: Before submitting
35+
description: >-
36+
Please ensure your change request fulfills all of the following requirements.
37+
If you are unsure of what a specific requirement means, please follow the links to learn about it and understand why it is necessary before submitting.
38+
options:
39+
- label: >-
40+
I have read [the documentation](https://www.asbuiltreport.com/user-guide/new-asbuiltconfig),
41+
and referred to the [known issues](https://www.asbuiltreport.com/user-guide/known-issues/) before submitting this change request.
42+
required: true
43+
- label: >-
44+
I have checked for previously opened & closed [issues](https://github.com/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement/issues) before submitting this change request.
45+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/CodeQL.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
#
6+
# https://github.com/microsoft/action-psscriptanalyzer
7+
# For more information on PSScriptAnalyzer in general, see
8+
# https://github.com/PowerShell/PSScriptAnalyzer
9+
10+
name: CodeQL
11+
12+
on:
13+
push:
14+
branches: [ "dev" ]
15+
pull_request:
16+
branches: [ "dev" ]
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
build:
22+
permissions:
23+
contents: read # for actions/checkout to fetch code
24+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
25+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
26+
name: PSScriptAnalyzer
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Run PSScriptAnalyzer
32+
uses: microsoft/[email protected]
33+
with:
34+
# Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options.
35+
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
36+
path: .\
37+
recurse: true
38+
# Include your own basic security rules. Removing this option will run all the rules
39+
excludeRule: '"PSAvoidUsingPlainTextForPassword", "PSAvoidUsingUsernameAndPasswordParams", "PSAvoidUsingConvertToSecureStringWithPlainText"'
40+
output: results.sarif
41+
42+
# Upload the SARIF file generated in the previous step
43+
- name: Upload SARIF results file
44+
uses: github/codeql-action/upload-sarif@v3
45+
with:
46+
sarif_file: results.sarif

.github/workflows/PSScriptAnalyzer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
name: Run PSScriptAnalyzer
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99
- name: lint
1010
uses: devblackops/github-action-psscriptanalyzer@master
1111
with:
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
@{
22
ExcludeRules = @(
3-
'PSUseToExportFieldsInManifest',
4-
'PSReviewUnusedParameter',
5-
'PSUseDeclaredVarsMoreThanAssignments',
6-
'PSAvoidGlobalVars'
3+
'PSUseToExportFieldsInManifest'
74
)
8-
}
5+
Rules = @{
6+
PSAvoidExclaimOperator = @{
7+
Enable = $true
8+
}
9+
AvoidUsingDoubleQuotesForConstantString = @{
10+
Enable = $true
11+
}
12+
UseCorrectCasing = @{
13+
Enable = $true
14+
}
15+
}
16+
}

.github/workflows/Release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
needs: publish-to-gallery
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: Eomm/why-don-t-you-tweet@v1
32+
- uses: Eomm/why-don-t-you-tweet@v2
3333
# We don't want to tweet if the repository is not a public one
3434
if: ${{ !github.event.repository.private }}
3535
with:
@@ -41,3 +41,14 @@ jobs:
4141
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
4242
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
4343
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
44+
bsky-post:
45+
needs: publish-to-gallery
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: zentered/[email protected]
49+
with:
50+
post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Microsoft #ActiveDirectory #AsBuiltReport #PowerShell #MicrosoftMVP #MVPBuzz #cybersecurity #infosec"
51+
env:
52+
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
53+
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}
54+

.vscode/settings.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
{
22
"powershell.codeFormatting.preset": "Custom",
3+
"powershell.codeFormatting.useCorrectCasing": true,
4+
"powershell.codeFormatting.autoCorrectAliases": true,
35
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
46
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
57
"powershell.codeFormatting.whitespaceAroundOperator": true,
68
"powershell.codeFormatting.whitespaceAfterSeparator": true,
9+
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
710
"powershell.codeFormatting.ignoreOneLineBlock": true,
811
"powershell.codeFormatting.newLineAfterCloseBrace": false,
912
"powershell.codeFormatting.newLineAfterOpenBrace": true,
1013
"powershell.codeFormatting.openBraceOnSameLine": true,
11-
"powershell.codeFolding.enable": true,
1214
"powershell.codeFormatting.alignPropertyValuePairs": false,
13-
"powershell.bugReporting.project": "https://github.com/AsBuiltReport/AsBuiltReport.VMware.NSXv/",
15+
"powershell.codeFolding.enable": true,
16+
"powershell.scriptAnalysis.enable": true,
17+
"powershell.scriptAnalysis.settingsPath": ".github/workflows/PSScriptAnalyzerSettings.psd1",
1418
"editor.tabSize": 4,
1519
"editor.insertSpaces": true,
1620
"editor.detectIndentation": false,
1721
"editor.rulers": [
1822
115
19-
]
23+
],
24+
"files.trimTrailingWhitespace": true
2025
}

0 commit comments

Comments
 (0)