Skip to content

Commit debf8a2

Browse files
committed
Fix Super Linter errors
1 parent d2d57e0 commit debf8a2

6 files changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- published
1111
workflow_dispatch:
1212

13-
permissions: read-all
14-
1513
env:
1614
DOTNET_NOLOGO: true
1715
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
@@ -21,12 +19,18 @@ jobs:
2119
ci:
2220
name: CI
2321
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: read
25+
statuses: write
26+
packages: read
2427
steps:
2528
- name: 'Checkout'
2629
uses: actions/checkout@v5
2730
with:
2831
lfs: true
2932
fetch-depth: 0
33+
persist-credentials: false
3034
- name: 'Install InvokeBuild Module'
3135
shell: pwsh
3236
run: Install-Module -Name InvokeBuild -Force
@@ -63,12 +67,18 @@ jobs:
6367
name: 'DockerHub'
6468
url: https://hub.docker.com/r/tiksn/fossa-ui
6569
runs-on: ubuntu-latest
70+
permissions:
71+
contents: read
72+
pull-requests: read
73+
statuses: write
74+
packages: read
6675
steps:
6776
- name: 'Checkout'
6877
uses: actions/checkout@v5
6978
with:
7079
lfs: true
7180
fetch-depth: 0
81+
persist-credentials: false
7282
- name: 'Download Artefact'
7383
uses: actions/download-artifact@v5.0.0
7484
with:

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10-
permissions: read-all
11-
1210
env:
1311
DOTNET_NOLOGO: true
1412
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
@@ -20,13 +18,16 @@ jobs:
2018
runs-on: ubuntu-latest
2119

2220
permissions:
21+
contents: read
22+
packages: read
2323
statuses: write
2424

2525
steps:
2626
- name: Checkout code
2727
uses: actions/checkout@v5
2828
with:
2929
fetch-depth: 0
30+
persist-credentials: false
3031

3132
- name: 'Install InvokeBuild Module'
3233
shell: pwsh

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- synchronize
1313
workflow_dispatch:
1414

15-
permissions: read-all
15+
permissions: {}
1616

1717
jobs:
1818
update_release_draft:

.trivyignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
**/node_modules/
3+
node_modules/**
4+
**/node_modules/**

lint.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ docker run --rm `
1010
-e FIX_DOTNET_SLN_FORMAT_STYLE=true `
1111
-e FIX_DOTNET_SLN_FORMAT_WHITESPACE=true `
1212
-e FIX_ENV=true `
13+
-e FIX_GITHUB_ACTIONS_ZIZMOR=true `
1314
-e FIX_JAVASCRIPT_ES=true `
1415
-e FIX_JAVASCRIPT_PRETTIER=true `
1516
-e FIX_JSON=true `

trivy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
scan:
2+
skip-dirs:
3+
- 'node_modules'
4+
skip-files:
5+
- 'node_modules/**'
6+
- '**/node_modules/**'
7+
- '**/node_modules/**/*.Dockerfile'

0 commit comments

Comments
 (0)