Skip to content

Commit 19dcf65

Browse files
🩹 [Patch]: Add output for GitHubRepos from PSModule (#59)
## Description This pull request updates GitHub Actions workflows to improve functionality and maintainability. The changes include removing a redundant comment from the `Action-Test` workflow and modifying the `TestWorkflow` to specify the repository owner explicitly in multiple job configurations. Updates to GitHub Actions workflows: * [`.github/workflows/Action-Test.yml`](diffhunk://#diff-a12ae5c885b0673c0ff6f70c2670886907590d624626e07da4c52e01aeaf56a4L1): Removed a redundant comment related to skipping a Checkov rule for tag references. * [`.github/workflows/TestWorkflow.yml`](diffhunk://#diff-242a265d6d6bfff6094c9285345022d0e6d7ddde58504dfc80249fafbd89ba2cL415-R415): Updated the `Get-GitHubRepository` command in three job configurations (`ActionTestWithUSERFGPAT`, `ActionTestWithORGFGPAT`, and `ActionTestWithGitHubAppEnt`) to include the `-Owner PSModule` parameter for specifying the repository owner explicitly. [[1]](diffhunk://#diff-242a265d6d6bfff6094c9285345022d0e6d7ddde58504dfc80249fafbd89ba2cL415-R415) [[2]](diffhunk://#diff-242a265d6d6bfff6094c9285345022d0e6d7ddde58504dfc80249fafbd89ba2cL441-R441) [[3]](diffhunk://#diff-242a265d6d6bfff6094c9285345022d0e6d7ddde58504dfc80249fafbd89ba2cL467-R467) ## 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 5de71fb commit 19dcf65

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/Action-Test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# checkov:skip=CKV_GHA_7:Using tag references for better readability and maintenance
21
name: Action-Test
32

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

.github/workflows/TestWorkflow.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
required: false
1111
type: boolean
1212
default: false
13+
Owner:
14+
description: The owner of the repository
15+
required: false
16+
type: string
17+
default: PSModule
1318
secrets:
1419
TEST_USER_PAT:
1520
description: Personal Access Token for the test user
@@ -412,7 +417,7 @@ jobs:
412417
}
413418
414419
LogGroup 'Get-GitHubRepository' {
415-
Get-GitHubRepository | Out-String
420+
Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String
416421
}
417422
418423
ActionTestWithUSERFGPAT:
@@ -438,7 +443,7 @@ jobs:
438443
}
439444
440445
LogGroup 'Get-GitHubRepository' {
441-
Get-GitHubRepository | Out-String
446+
Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String
442447
}
443448
444449
ActionTestWithORGFGPAT:
@@ -464,7 +469,7 @@ jobs:
464469
}
465470
466471
LogGroup 'Get-GitHubRepository' {
467-
Get-GitHubRepository | Out-String
472+
Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String
468473
}
469474
470475
ActionTestWithGitHubAppEnt:

0 commit comments

Comments
 (0)