Skip to content

Commit 3285d0d

Browse files
Add a test for FG PAT
1 parent 174cd64 commit 3285d0d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/Action-Test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,26 @@ jobs:
8686
Get-GitHubContext
8787
}
8888
89+
LogGroup 'Get-GitHubUser' {
90+
Get-GitHubUser
91+
}
92+
ActionTestWithFGPAT:
93+
name: Action-Test - [WithFGPAT]
94+
runs-on: ubuntu-latest
95+
steps:
96+
# Need to check out as part of the test, as its a local action
97+
- name: Checkout repo
98+
uses: actions/checkout@v4
99+
100+
- name: Action-Test
101+
uses: ./
102+
with:
103+
Token: ${{ secrets.TEST_FG_PAT }}
104+
Script: |
105+
LogGroup 'Get-GitHubContext' {
106+
Get-GitHubContext
107+
}
108+
89109
LogGroup 'Get-GitHubUser' {
90110
Get-GitHubUser
91111
}

0 commit comments

Comments
 (0)