Skip to content

Commit 71b1baf

Browse files
super-linterアップデート (#921)
* Update super-linter/super-linter action to v6 * Set DEFAULT_BRANCH * super-linterによる指摘事項修正 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 7147a41 commit 71b1baf

File tree

9 files changed

+22
-13
lines changed

9 files changed

+22
-13
lines changed

.github/workflows/add-to-task-list.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
issues:
88
types:
99
- opened
10+
permissions: read-all
1011
jobs:
1112
add-to-task-list:
1213
runs-on: ubuntu-latest

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
branches: ["main"]
1818
schedule:
1919
- cron: '15 7 * * 2'
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
2024
jobs:
2125
analyze:
2226
name: Analyze
@@ -27,10 +31,6 @@ jobs:
2731
# Consider using larger runners for possible analysis time improvements.
2832
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
2933
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
30-
permissions:
31-
actions: read
32-
contents: read
33-
security-events: write
3434
strategy:
3535
fail-fast: false
3636
matrix:

.github/workflows/create-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- .github/workflows/create-release.yml
99
- scripts/action/**
1010
- action.yml
11+
permissions:
12+
contents: write
1113
jobs:
1214
create-release:
1315
runs-on: ubuntu-latest

.github/workflows/github-actions-cache-cleaner.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- .github/workflows/github-actions-cache-cleaner.yml
1313
- scripts/action/**
1414
- action.yml
15+
permissions: read-all
1516
jobs:
1617
github-actions-cache-cleaner:
1718
runs-on: ubuntu-latest

.github/workflows/super-linter.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
branches:
1919
- main
2020
pull_request:
21+
permissions:
22+
contents: read
23+
packages: read
24+
statuses: write
2125
###############
2226
# Set the Job #
2327
###############
@@ -48,9 +52,10 @@ jobs:
4852
# Run Linter against code base #
4953
################################
5054
- name: Lint Code Base
51-
uses: super-linter/super-linter/slim@v5.7.2
55+
uses: super-linter/super-linter/slim@v6.0.0
5256
env:
5357
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
DEFAULT_BRANCH: main
5459
LINTER_RULES_PATH: .
5560
concurrency:
5661
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}

.github/workflows/update-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ on:
1010
push:
1111
branches:
1212
- main
13+
permissions:
14+
contents: write
15+
pull-requests: write
1316
jobs:
1417
# npm installを実行し、package.jsonやpackage-lock.jsonに差分があればPRを作る
1518
update-package:
1619
runs-on: ubuntu-latest
17-
permissions:
18-
contents: write
19-
pull-requests: write
2020
steps:
2121
- uses: actions/[email protected]
2222
if: github.event_name != 'pull_request' || github.event.action != 'closed'

.github/workflows/update-readme.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ on:
1010
push:
1111
branches:
1212
- main
13+
permissions:
14+
contents: write
15+
pull-requests: write
1316
jobs:
1417
update-readme:
1518
runs-on: ubuntu-latest
16-
permissions:
17-
contents: write
18-
pull-requests: write
1919
steps:
2020
- uses: actions/[email protected]
2121
if: github.event_name != 'pull_request' || github.event.action != 'closed'

scripts/super_linter/build/set_path.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
npm ci
44
action="$(yq '.jobs.build.steps[-1].uses' .github/workflows/super-linter.yml)"
55
PATH="$(docker run --rm --entrypoint '' "ghcr.io/${action//\/slim@/:slim-}" /bin/sh -c 'echo $PATH')"
6-
echo "PATH=/github/workspace/node_modules/.bin:${PATH}" >> "$GITHUB_ENV"
6+
echo "PATH=/github/workspace/node_modules/.bin:${PATH}" >>"$GITHUB_ENV"

scripts/update_readme/update_readme/update_readme.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
DESCRIPTION="$(yq '.description' action.yml)"
44
export DESCRIPTION
5-
envsubst < README.template.md > README.md
5+
envsubst <README.template.md >README.md

0 commit comments

Comments
 (0)