Skip to content

Commit 5de71fb

Browse files
🪲 [Fix]: Ensure Prerelease input defaults to false in tests (#58)
## Description This pull request includes a small change to the `.github/workflows/Action-Test.yml` file. The change ensures that the `Prerelease` input defaults to `false` if not explicitly provided. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 506569f commit 5de71fb

File tree

3 files changed

+51
-6
lines changed

3 files changed

+51
-6
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Action-Test-Prerelease
2+
3+
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on:
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
pull-requests: read
15+
16+
jobs:
17+
ActionTest:
18+
uses: ./.github/workflows/TestWorkflow.yml
19+
secrets: inherit
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
with:
25+
runs-on: ${{ matrix.os }}
26+
Prerelease: true

.github/workflows/Action-Test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1+
# checkov:skip=CKV_GHA_7:Using tag references for better readability and maintenance
12
name: Action-Test
23

34
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
45

56
on:
67
workflow_dispatch:
7-
inputs:
8-
Prerelease:
9-
type: boolean
10-
default: false
11-
description: Use the prerelease version of GitHub PowerShell module.
128
pull_request:
139
schedule:
1410
- cron: '0 0 * * *'
@@ -31,4 +27,3 @@ jobs:
3127
os: [ubuntu-latest, macos-latest, windows-latest]
3228
with:
3329
runs-on: ${{ matrix.os }}
34-
Prerelease: ${{ inputs.Prerelease }}

.github/workflows/TestWorkflow.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,14 @@ jobs:
407407
Get-GitHubUser | Format-Table -AutoSize | Out-String
408408
}
409409
410+
LogGroup 'Get-GitHubOrganization' {
411+
Get-GitHubOrganization | Out-String
412+
}
413+
414+
LogGroup 'Get-GitHubRepository' {
415+
Get-GitHubRepository | Out-String
416+
}
417+
410418
ActionTestWithUSERFGPAT:
411419
name: WithUserFGPAT
412420
runs-on: ${{ inputs.runs-on }}
@@ -425,6 +433,14 @@ jobs:
425433
Get-GitHubUser | Format-Table -AutoSize | Out-String
426434
}
427435
436+
LogGroup 'Get-GitHubOrganization' {
437+
Get-GitHubOrganization | Out-String
438+
}
439+
440+
LogGroup 'Get-GitHubRepository' {
441+
Get-GitHubRepository | Out-String
442+
}
443+
428444
ActionTestWithORGFGPAT:
429445
name: WithOrgFGPAT
430446
runs-on: ${{ inputs.runs-on }}
@@ -443,6 +459,14 @@ jobs:
443459
Get-GitHubUser | Format-Table -AutoSize | Out-String
444460
}
445461
462+
LogGroup 'Get-GitHubOrganization' {
463+
Get-GitHubOrganization | Out-String
464+
}
465+
466+
LogGroup 'Get-GitHubRepository' {
467+
Get-GitHubRepository | Out-String
468+
}
469+
446470
ActionTestWithGitHubAppEnt:
447471
name: GitHubAppEnt
448472
runs-on: ${{ inputs.runs-on }}

0 commit comments

Comments
 (0)