Skip to content

Commit 4061140

Browse files
committed
Update GitHub Actions workflows and pin action versions
Standardized YAML quoting style, added 'persist-credentials: false' to checkout steps, pinned actions/checkout and other actions to specific commit SHAs for improved security, and fixed a typo in the super-linter workflow. These changes enhance workflow reliability and security.
1 parent 5cf6a45 commit 4061140

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
55
branches:
66
- main
7-
- "!dependabot/**"
7+
- '!dependabot/**'
88
pull_request:
99
branches:
1010
- main
11-
- "!dependabot/**"
11+
- '!dependabot/**'
1212
workflow_dispatch:
1313

1414
jobs:
@@ -23,11 +23,13 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v5
26+
with:
27+
persist-credentials: false
2628

2729
- name: Initialize CodeQL
2830
uses: github/codeql-action/init@v3
2931
with:
30-
languages: "javascript"
32+
languages: 'javascript'
3133
queries: +security-and-quality
3234

3335
- name: Perform CodeQL Analysis

.github/workflows/spellcheck.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Check spelling"
1+
name: 'Check spelling'
22
on:
33
push:
44
branches: [main]
@@ -13,8 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: ${{ github.actor != 'dependabot[bot]' }}
1515
steps:
16-
- uses: actions/checkout@v5
17-
- uses: streetsidesoftware/cspell-action@v7
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
with:
18+
persist-credentials: false
19+
20+
- uses: streetsidesoftware/cspell-action@dcd03dc3e8a59ec2e360d0c62db517baa0b4bb6d # v7.2.0
1821
with:
1922
check_dot_files: false
2023
incremental_files_only: true

.github/workflows/super-linter.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424

2525
steps:
2626
- name: Checkout Code
27-
uses: actions/checkout@v5
27+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2828
with:
2929
fetch-depth: 0
30+
persist-credentials: false
3031

3132
- name: Super-linter
32-
uses: super-linter/super-linter/slim@v8
33+
uses: super-linter/super-linter/slim@6916783267451c87693968017594a67447945328 # v8.11.1
3334
env:
3435
DEFAULT_BRANCH: main
3536
FILTER_REGEX_EXCLUDE: '/test/'
@@ -49,4 +50,4 @@ jobs:
4950
VALIDATE_JSON_PRETTIER: false
5051
VALIDATE_JSCPD: false
5152
VALIDATE_NATURAL_LANGUAGE: false
52-
VALIDTAE_YAML_PRETTIER: false
53+
VALIDATE_YAML_PRETTIER: false

0 commit comments

Comments
 (0)