Skip to content

Commit 325b68d

Browse files
committed
chore(gh): update workflows (#1033)
Update workflows. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent 0a99a07 commit 325b68d

File tree

5 files changed

+29
-18
lines changed

5 files changed

+29
-18
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
---
12
name: Publish Documentation
23
on:
34
workflow_dispatch:
45
permissions:
5-
contents: write
6+
contents: read
67
jobs:
78
publish-docs:
89
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
912
steps:
1013
- name: Checkout Repository
11-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1215
with:
1316
fetch-depth: 0
1417
- name: Setup Python
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
---
2-
name: "Code Analysis"
2+
name: Lint
3+
34
on:
45
push:
56
pull_request:
67
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
712
jobs:
8-
code-linting:
9-
name: Code Linting
13+
lint:
1014
runs-on: ubuntu-latest
1115
steps:
1216
- name: Checkout Repository
13-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1418
with:
1519
fetch-depth: 0
1620
- name: Run GitHub Super-Linter
1721
uses: github/super-linter@b807e99ddd37e444d189cfd2c2ca1274d8ae8ef1 # v7
1822
env:
1923
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
20-
DEFAULT_BRANCH: "develop"
24+
DEFAULT_BRANCH: develop
2125
DISABLE_ERRORS: false
22-
FILTER_REGEX_EXCLUDE: "build.tmpl"
26+
FILTER_REGEX_EXCLUDE: build.tmpl
2327
IGNORE_GITIGNORED_FILES: true
2428
VALIDATE_ALL_CODEBASE: false
2529
VALIDATE_BASH: true
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
---
2-
name: Lock Threads
2+
name: Lock
33
on:
44
schedule:
55
- cron: 30 00 * * *
6+
permissions:
7+
contents: read
68
jobs:
79
lock:
810
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
914
steps:
1015
- uses: dessant/lock-threads@d42e5f49803f3c4e14ffee0378e31481265dda22 # v5.0.0
1116
with:
1217
github-token: "${{ secrets.GITHUB_TOKEN }}"
1318
issue-comment: >-
1419
I'm going to lock this issue because it has been closed for 30
1520
days. This helps our maintainers find and focus on the active
16-
issues.
21+
issues.
1722
1823
1924
If you have found a problem that seems similar to this,
@@ -23,7 +28,7 @@ jobs:
2328
pr-comment: >-
2429
I'm going to lock this pull request because it has been closed for
2530
30 days. This helps our maintainers find and focus on the active
26-
issues.
31+
issues.
2732
2833
2934
If you have found a problem that seems related to this

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1+
---
12
name: Release
2-
33
on:
44
push:
55
tags:
66
- "v[0-9]+.[0-9]+"
7-
8-
97
permissions:
108
contents: write
11-
129
jobs:
13-
github-release:
10+
release:
1411
runs-on: ubuntu-latest
1512
steps:
1613
- name: Checkout Repository
17-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1815
with:
1916
fetch-depth: 0
2017
- name: Check Changelog

.github/workflows/stale.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2-
name: Manage Stale Items
2+
name: Stale
33
on:
44
schedule:
55
- cron: 00 00 * * *
6+
permissions:
7+
contents: read
68
jobs:
79
stale:
810
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)