Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit a938fff

Browse files
committed
chore(gh) update workflows
Update workflows. Signed-off-by: Ryan Johnson <[email protected]>
1 parent 2097630 commit a938fff

File tree

8 files changed

+73
-38
lines changed

8 files changed

+73
-38
lines changed

.github/dependabot.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
---
22
version: 2
3+
34
updates:
4-
- package-ecosystem: "github-actions"
5-
directory: "/"
6-
schedule:
7-
interval: "daily"
5+
- package-ecosystem: github-actions
6+
target-branch: develop
7+
directory: /
8+
schedule:
9+
interval: weekly
10+
labels:
11+
- chore
12+
- github-actions
13+
commit-message:
14+
prefix: 'chore(gh):'
15+
16+
- package-ecosystem: pip
17+
target-branch: develop
18+
directory: /
19+
schedule:
20+
interval: weekly
21+
labels:
22+
- chore
23+
- dependencies
24+
commit-message:
25+
prefix: 'chore(gh):'

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
---
12
name: Publish Documentation
3+
24
on:
35
workflow_dispatch:
4-
permissions:
5-
contents: write
6+
67
jobs:
78
publish-docs:
89
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
912
steps:
1013
- name: Checkout Repository
11-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1215
with:
1316
fetch-depth: 0
1417
- name: Setup Python

.github/workflows/issues.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Issue Triage
2+
name: Issue Labels
33

44
on:
55
issues:
@@ -9,11 +9,14 @@ on:
99
jobs:
1010
label-issues:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
issues: write
1215
steps:
13-
- name: Apply Issue Triage Labels
16+
- name: Apply Labels
1417
uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
1518
with:
16-
repo-token: '${{ secrets.GITHUB_TOKEN }}'
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1720
configuration-path: .github/labeler-issues.yml
1821
enable-versioned-regex: 0
1922
include-title: 1

.github/workflows/lock-threads.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ on:
88
jobs:
99
lock:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
1114
steps:
12-
- uses: dessant/lock-threads@d42e5f49803f3c4e14ffee0378e31481265dda22 # v5.0.0
15+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
1316
with:
14-
github-token: '${{ secrets.GITHUB_TOKEN }}'
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
1518
issue-comment: >
1619
I'm going to lock this issue because it has been closed for 30
1720
days. This helps our maintainers find and focus on the active
@@ -21,7 +24,7 @@ jobs:
2124
If you have found a problem that seems similar to this,
2225
please open a new issue and complete the issue template so we can
2326
capture all the details necessary to investigate further.
24-
issue-inactive-days: '30'
27+
issue-inactive-days: 30
2528
pr-comment: >
2629
I'm going to lock this pull request because it has been closed for
2730
30 days. This helps our maintainers find and focus on the active
@@ -31,4 +34,4 @@ jobs:
3134
If you have found a problem that seems related to this
3235
change, please open a new issue and complete the issue template so
3336
we can capture all the details necessary to investigate further.
34-
pr-inactive-days: '30'
37+
pr-inactive-days: 30

.github/workflows/pull-requests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323
- name: Apply Labels
2424
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
2525
with:
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}
2627
configuration-path: .github/labeler-pull-requests.yml
27-
repo-token: '${{ secrets.GITHUB_TOKEN }}'
28+

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
---
12
name: Release
23

34
on:
45
push:
56
tags:
6-
- "v[0-9]+.[0-9]+.[0-9]+*"
7-
8-
permissions:
9-
contents: write
7+
- v[0-9]+.[0-9]+.[0-9]+*
108

119
jobs:
1210
create-release:
1311
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1414
steps:
1515
- name: Checkout Repository
16-
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
fetch-depth: 0
1919
- name: Check Version
@@ -129,9 +129,12 @@ jobs:
129129
publish-docs:
130130
needs: create-release
131131
runs-on: ubuntu-latest
132+
permissions:
133+
contents: read
134+
pages: write
132135
steps:
133136
- name: Checkout Repository
134-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
137+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
135138
with:
136139
ref: ${{ github.event.release.tag_name }}
137140
fetch-depth: 0
@@ -150,9 +153,11 @@ jobs:
150153
publish-module:
151154
needs: [create-release, publish-docs]
152155
runs-on: ubuntu-latest
156+
permissions:
157+
contents: read
153158
steps:
154159
- name: Checkout Repository
155-
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
160+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
156161
with:
157162
ref: ${{ github.event.release.tag_name }}
158163
fetch-depth: 0

.github/workflows/stale.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
---
2-
name: Manage Stale Items
2+
name: Stale
33

44
on:
55
schedule:
66
- cron: 00 00 * * *
7-
7+
88
jobs:
99
stale:
1010
runs-on: ubuntu-latest
1111
permissions:
12+
contents: read
1213
issues: write
1314
pull-requests: write
1415
steps:
1516
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1617
with:
17-
repo-token: '${{ secrets.GITHUB_TOKEN }}'
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1819
days-before-stale: 60
1920
days-before-close: 30
20-
exempt-issue-labels: 'needs-triage'
21-
exempt-pr-labels: 'needs-review'
21+
exempt-issue-labels: needs-triage
22+
exempt-pr-labels: needs-review
23+
exempt-all-assignees: true
2224
remove-stale-when-updated: true
2325
delete-branch: false
2426
stale-issue-label: stale
2527
stale-issue-message: >
26-
'Marking this issue as stale due to inactivity. This helps us focus
28+
Marking this issue as stale due to inactivity. This helps us focus
2729
on the active issues. If this issue receives no comments in the next
2830
30 days it will automatically be closed.
2931
3032
3133
If this issue was automatically closed and you feel this issue
3234
should be reopened, we encourage creating a new issue linking back
33-
to this one for added context.
34-
35-
Thank you!'
35+
to this one for added context.
3636
stale-pr-label: stale
3737
stale-pr-message: >
38-
'Marking this pull request as stale due to inactivity. This helps us
38+
Marking this pull request as stale due to inactivity. This helps us
3939
focus on the active pull requests. If this pull request receives no
4040
comments in the next 30 days it will automatically be closed.
4141
42+
4243
If this pull request was automatically closed and you feel this pull
4344
request should be reopened, we encourage creating a new pull request
44-
linking back to this one for added context.
45-
46-
Thank you!'
45+
linking back to this one for added context.

.github/workflows/tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Tests
1+
---
2+
name: Test
23

34
on:
45
push:
@@ -11,8 +12,10 @@ on:
1112
jobs:
1213
basic_tests:
1314
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
1417
steps:
15-
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1619
- name: Run Basic Tests
1720
working-directory: ${{ github.workspace }}
1821
shell: pwsh
@@ -39,7 +42,7 @@ jobs:
3942
$moduleManifestData = Import-PowerShellDataFile -Path $moduleManifest
4043
$requiredModules = $moduleManifestData.RequiredModules
4144
$requiredModules = $requiredModules | Where-Object { $_.ModuleName -ne 'VMware.vSphere.SsoAdmin' -and $_.ModuleName -ne 'VMware.PowerCLI'}
42-
Write-Output "INFO: Required modules are $($requiredModules.ModuleName -join ', ')."
45+
Write-Output "INFO: Required modules are $($requiredModules.ModuleName -join ', ')."
4346
foreach ($module in $requiredModules) {
4447
$requiredModuleName = $module.ModuleName
4548
$licenseUri = [System.Uri] (Find-Module -Name $requiredModuleName).LicenseUri

0 commit comments

Comments
 (0)