Skip to content

Commit 11a4b71

Browse files
authored
Merge pull request #133 from AsBuiltReport/dev
Publish 0.5.3 on master
2 parents 583ca18 + a0056d3 commit 11a4b71

File tree

7 files changed

+282
-193
lines changed

7 files changed

+282
-193
lines changed

.github/Dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Dependabot configuration for AsBuiltReport.Core
2+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
# Monitor GitHub Actions
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
day: "monday"
12+
labels:
13+
- "dependencies"
14+
- "github-actions"
15+
commit-message:
16+
prefix: "ci"
17+
include: "scope"
18+
open-pull-requests-limit: 5
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: PSScriptAnalyzer
22
on: [push, pull_request]
33
jobs:
4-
lint:
5-
name: Run PSScriptAnalyzer
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v2
9-
- name: lint
10-
uses: devblackops/github-action-psscriptanalyzer@master
11-
with:
12-
sendComment: true
13-
failOnErrors: true
14-
failOnWarnings: false
15-
failOnInfos: false
16-
repoToken: ${{ secrets.GITHUB_TOKEN }}
17-
settingsPath: .github/workflows/PSScriptAnalyzerSettings.psd1
4+
lint:
5+
name: Run PSScriptAnalyzer
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v6
9+
- name: lint
10+
uses: alagoutte/github-action-psscriptanalyzer@master
11+
with:
12+
sendComment: true
13+
failOnErrors: true
14+
failOnWarnings: false
15+
failOnInfos: false
16+
repoToken: ${{ secrets.GITHUB_TOKEN }}
17+
settingsPath: .github/workflows/PSScriptAnalyzerSettings.psd1

.github/workflows/Release.yml

Lines changed: 52 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,57 @@
11
name: Publish PowerShell Module
22

33
on:
4-
release:
5-
types: [published]
4+
release:
5+
types: [published]
66

77
jobs:
8-
publish-to-gallery:
9-
runs-on: windows-2019
10-
steps:
11-
- uses: actions/checkout@v2
12-
- name: Set PSRepository to Trusted for PowerShell Gallery
13-
shell: pwsh
14-
run: |
15-
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
16-
- name: Install AsBuiltReport.Core module
17-
shell: pwsh
18-
run: |
19-
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -Force
20-
- name: Install PowerFGT module
21-
shell: pwsh
22-
run: |
23-
Install-Module -Name PowerFGT -Repository PSGallery -Force
24-
- name: Test Module Manifest
25-
shell: pwsh
26-
run: |
27-
Test-ModuleManifest .\AsBuiltReport.Fortinet.FortiGate.psd1
28-
- name: Publish module to PowerShell Gallery
29-
shell: pwsh
30-
run: |
31-
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
32-
tweet:
33-
needs: publish-to-gallery
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: Eomm/why-don-t-you-tweet@v1
37-
# We don't want to tweet if the repository is not a public one
38-
if: ${{ !github.event.repository.private }}
39-
with:
40-
# GitHub event payload
41-
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
42-
tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Fortinet #FortiGate #AsBuiltReport #PowerShell #CyberSecurity"
43-
env:
44-
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
45-
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
46-
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
47-
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
8+
publish-to-gallery:
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- name: Set PSRepository to Trusted for PowerShell Gallery
13+
shell: pwsh
14+
run: |
15+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
16+
- name: Install AsBuiltReport.Core module
17+
shell: pwsh
18+
run: |
19+
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -Force
20+
- name: Install PowerFGT module
21+
shell: pwsh
22+
run: |
23+
Install-Module -Name PowerFGT -Repository PSGallery -Force
24+
- name: Test Module Manifest
25+
shell: pwsh
26+
run: |
27+
Test-ModuleManifest .\AsBuiltReport.Fortinet.FortiGate.psd1
28+
- name: Publish module to PowerShell Gallery
29+
shell: pwsh
30+
run: |
31+
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
32+
tweet:
33+
needs: publish-to-gallery
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: Eomm/why-don-t-you-tweet@v2
37+
# We don't want to tweet if the repository is not a public one
38+
if: ${{ !github.event.repository.private }}
39+
with:
40+
# GitHub event payload
41+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
42+
tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Fortinet #FortiGate #AsBuiltReport #PowerShell #CyberSecurity"
43+
env:
44+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
45+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
46+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
47+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
48+
bsky-post:
49+
needs: publish-to-gallery
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: zentered/[email protected]
53+
with:
54+
post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Fortinet #FortiGate #AsBuiltReport #PowerShell #CyberSecurity"
55+
env:
56+
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
57+
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}

AsBuiltReport.Fortinet.FortiGate.psd1

Lines changed: 88 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -8,134 +8,134 @@
88

99
@{
1010

11-
# Script module or binary module file associated with this manifest.
12-
RootModule = 'AsBuiltReport.Fortinet.FortiGate.psm1'
11+
# Script module or binary module file associated with this manifest.
12+
RootModule = 'AsBuiltReport.Fortinet.FortiGate.psm1'
1313

14-
# Version number of this module.
15-
ModuleVersion = '0.5.2'
14+
# Version number of this module.
15+
ModuleVersion = '0.5.3'
1616

17-
# Supported PSEditions
18-
# CompatiblePSEditions = @()
17+
# Supported PSEditions
18+
# CompatiblePSEditions = @()
1919

20-
# ID used to uniquely identify this module
21-
GUID = '731c345e-142c-48fe-86ac-b3bdb883c7b9'
20+
# ID used to uniquely identify this module
21+
GUID = '731c345e-142c-48fe-86ac-b3bdb883c7b9'
2222

23-
# Author of this module
24-
Author = 'Alexis La Goutte'
23+
# Author of this module
24+
Author = 'Alexis La Goutte'
2525

26-
# Company or vendor of this module
27-
# CompanyName = 'Unknown'
26+
# Company or vendor of this module
27+
# CompanyName = 'Unknown'
2828

29-
# Copyright statement for this module
30-
Copyright = '(c) 2022 Alexis La Goutte. All rights reserved.'
29+
# Copyright statement for this module
30+
Copyright = '(c) 2022 Alexis La Goutte. All rights reserved.'
3131

32-
# Description of the functionality provided by this module
33-
Description = 'A PowerShell module to generate an as built report on the configuration of Fortinet FortiGate.'
32+
# Description of the functionality provided by this module
33+
Description = 'A PowerShell module to generate an as built report on the configuration of Fortinet FortiGate.'
3434

35-
# Minimum version of the Windows PowerShell engine required by this module
36-
# PowerShellVersion = '5.1'
35+
# Minimum version of the Windows PowerShell engine required by this module
36+
# PowerShellVersion = '5.1'
3737

38-
# Name of the Windows PowerShell host required by this module
39-
# PowerShellHostName = ''
38+
# Name of the Windows PowerShell host required by this module
39+
# PowerShellHostName = ''
4040

41-
# Minimum version of the Windows PowerShell host required by this module
42-
# PowerShellHostVersion = ''
41+
# Minimum version of the Windows PowerShell host required by this module
42+
# PowerShellHostVersion = ''
4343

44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
# DotNetFrameworkVersion = ''
44+
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45+
# DotNetFrameworkVersion = ''
4646

47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# CLRVersion = ''
47+
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48+
# CLRVersion = ''
4949

50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
50+
# Processor architecture (None, X86, Amd64) required by this module
51+
# ProcessorArchitecture = ''
5252

53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(
55-
@{
56-
ModuleName = 'AsBuiltReport.Core';
57-
ModuleVersion = '1.4.3'
58-
},
59-
@{
60-
ModuleName = 'PowerFGT';
61-
ModuleVersion = '0.9.1'
62-
}
53+
# Modules that must be imported into the global environment prior to importing this module
54+
RequiredModules = @(
55+
@{
56+
ModuleName = 'AsBuiltReport.Core';
57+
ModuleVersion = '1.5.1'
58+
},
59+
@{
60+
ModuleName = 'PowerFGT';
61+
ModuleVersion = '0.9.1'
62+
}
6363

64-
)
64+
)
6565

66-
# Assemblies that must be loaded prior to importing this module
67-
# RequiredAssemblies = @()
66+
# Assemblies that must be loaded prior to importing this module
67+
# RequiredAssemblies = @()
6868

69-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
70-
# ScriptsToProcess = @()
69+
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
70+
# ScriptsToProcess = @()
7171

72-
# Type files (.ps1xml) to be loaded when importing this module
73-
# TypesToProcess = @()
72+
# Type files (.ps1xml) to be loaded when importing this module
73+
# TypesToProcess = @()
7474

75-
# Format files (.ps1xml) to be loaded when importing this module
76-
# FormatsToProcess = @()
75+
# Format files (.ps1xml) to be loaded when importing this module
76+
# FormatsToProcess = @()
7777

78-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
79-
# NestedModules = @()
78+
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
79+
# NestedModules = @()
8080

81-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
82-
FunctionsToExport = @('Invoke-AsBuiltReport.Fortinet.FortiGate')
81+
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
82+
FunctionsToExport = @('Invoke-AsBuiltReport.Fortinet.FortiGate')
8383

84-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
85-
# CmdletsToExport = '*'
84+
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
85+
# CmdletsToExport = '*'
8686

87-
# Variables to export from this module
88-
# VariablesToExport = '*'
87+
# Variables to export from this module
88+
# VariablesToExport = '*'
8989

90-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
91-
# AliasesToExport = '*'
90+
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
91+
# AliasesToExport = '*'
9292

93-
# DSC resources to export from this module
94-
# DscResourcesToExport = @()
93+
# DSC resources to export from this module
94+
# DscResourcesToExport = @()
9595

96-
# List of all modules packaged with this module
97-
# ModuleList = @()
96+
# List of all modules packaged with this module
97+
# ModuleList = @()
9898

99-
# List of all files packaged with this module
100-
# FileList = @()
99+
# List of all files packaged with this module
100+
# FileList = @()
101101

102-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
103-
PrivateData = @{
102+
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
103+
PrivateData = @{
104104

105-
PSData = @{
106-
# Tags applied to this module. These help with module discovery in online galleries.
107-
Tags = 'AsBuiltReport', 'Report', 'Fortinet', 'FortiGate', 'Documentation', 'PScribo', 'PSEdition_Desktop', 'PSEdition_Core', 'Windows', 'MacOS', 'Linux'
105+
PSData = @{
106+
# Tags applied to this module. These help with module discovery in online galleries.
107+
Tags = 'AsBuiltReport', 'Report', 'Fortinet', 'FortiGate', 'Documentation', 'PScribo', 'PSEdition_Desktop', 'PSEdition_Core', 'Windows', 'MacOS', 'Linux'
108108

109-
# A URL to the license for this module.
110-
LicenseUri = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.Fortinet.FortiGate/master/LICENSE'
109+
# A URL to the license for this module.
110+
LicenseUri = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.Fortinet.FortiGate/master/LICENSE'
111111

112-
# A URL to the main website for this project.
113-
ProjectUri = 'https://github.com/AsBuiltReport/AsBuiltReport.Fortinet.FortiGate'
112+
# A URL to the main website for this project.
113+
ProjectUri = 'https://github.com/AsBuiltReport/AsBuiltReport.Fortinet.FortiGate'
114114

115-
# A URL to an icon representing this module.
116-
IconUri = 'https://github.com/AsBuiltReport.png'
115+
# A URL to an icon representing this module.
116+
IconUri = 'https://github.com/AsBuiltReport.png'
117117

118-
# ReleaseNotes of this module
119-
ReleaseNotes = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.Fortinet.FortiGate/master/CHANGELOG.md'
118+
# ReleaseNotes of this module
119+
ReleaseNotes = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.Fortinet.FortiGate/master/CHANGELOG.md'
120120

121-
# Prerelease string of this module
122-
# Prerelease = ''
121+
# Prerelease string of this module
122+
# Prerelease = ''
123123

124-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
125-
# RequireLicenseAcceptance = $false
124+
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
125+
# RequireLicenseAcceptance = $false
126126

127-
# External dependent modules of this module
128-
# ExternalModuleDependencies = @()
127+
# External dependent modules of this module
128+
# ExternalModuleDependencies = @()
129129

130-
} # End of PSData hashtable
130+
} # End of PSData hashtable
131131

132-
} # End of PrivateData hashtable
132+
} # End of PrivateData hashtable
133133

134-
# HelpInfo URI of this module
135-
# HelpInfoURI = ''
134+
# HelpInfo URI of this module
135+
# HelpInfoURI = ''
136136

137-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
138-
# DefaultCommandPrefix = ''
137+
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
138+
# DefaultCommandPrefix = ''
139139

140140
}
141141

0 commit comments

Comments
 (0)