Skip to content

Commit 09f5108

Browse files
super-linterアップデート (#1477)
* Update super-linter/super-linter action to v6 * Add DEFAULT_BRANCH: main * Fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent a9f369a commit 09f5108

9 files changed

Lines changed: 22 additions & 15 deletions

File tree

.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: '28 4 * * 6'
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/github-actions-cache-cleaner.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
schedule:
88
- cron: '0 21 * * *' # 06:00 JST
99
workflow_dispatch:
10+
permissions: read-all
1011
jobs:
1112
github-actions-cache-cleaner:
1213
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/checkout@v4.1.1
2222
with:

.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/checkout@v4.1.1
2121
with:

scripts/action/push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git config user.email "${EMAIL}"
66
GIT_COMMIT_COMMAND="git commit"
77

88
if [ "$NO_VERIFY" = "true" ]; then
9-
GIT_COMMIT_COMMAND="$GIT_COMMIT_COMMAND --no-verify"
9+
GIT_COMMIT_COMMAND="$GIT_COMMIT_COMMAND --no-verify"
1010
fi
1111

1212
GIT_COMMIT_COMMAND="$GIT_COMMIT_COMMAND -m \"${PR_TITLE_PREFIX}\""
@@ -18,7 +18,7 @@ GITHUB_HEAD="HEAD:refs/heads/${BRANCH_NAME_PREFIX}-${HEAD_REF}"
1818
GIT_PUSH_COMMAND="git push"
1919

2020
if [ "$NO_VERIFY" = "true" ]; then
21-
GIT_PUSH_COMMAND="$GIT_PUSH_COMMAND --no-verify"
21+
GIT_PUSH_COMMAND="$GIT_PUSH_COMMAND --no-verify"
2222
fi
2323

2424
GIT_PUSH_COMMAND="$GIT_PUSH_COMMAND -f \"${REPO_URL}\" \"${GITHUB_HEAD}\""

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)