Skip to content

Commit 7c19486

Browse files
massongitrenovate[bot]github-actions[bot]dev-hato-app[bot]claude
authored
super-linterアップデート (#2164)
* Update super-linter/super-linter action to v8.3.0 * gitleaksをアップデートしてあげたよ! (#2163) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fix format * Fix format * Add .markdown-lint.yml * Disable MD060 * formatが間違ってたので直してあげたよ! (#2166) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Add comment * 環境変数経由で値を与える * Suppress github-env warning with inline comment zizmor の github-env 警告をインラインコメントで抑制しました。 テンプレート変数は既に env セクション経由で安全にエスケープされているため、 この警告は誤検出です。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dev-hato-app[bot] <111467236+dev-hato-app[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2eae653 commit 7c19486

4 files changed

Lines changed: 52 additions & 9 deletions

File tree

.github/workflows/super-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
# Run Linter against code base #
5555
################################
5656
- name: Lint Code Base
57-
uses: super-linter/super-linter/slim@2bdd90ed3262e023ac84bf8fe35dc480721fc1f2 # v8.2.1
57+
uses: super-linter/super-linter/slim@502f4fe48a81a392756e173e39a861f8c8efe056 # v8.3.0
5858
env:
5959
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
DEFAULT_BRANCH: main

.markdown-lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# https://github.com/super-linter/super-linter/blob/2664cb3b19839c209e23e9061ab5beeba01c6093/TEMPLATES/.markdown-lint.yml
3+
###########################
4+
###########################
5+
## Markdown Linter rules ##
6+
###########################
7+
###########################
8+
9+
# Linter rules doc:
10+
# - https://github.com/DavidAnson/markdownlint
11+
#
12+
# Note:
13+
# To comment out a single error:
14+
# <!-- markdownlint-disable -->
15+
# any violations you want
16+
# <!-- markdownlint-restore -->
17+
#
18+
19+
###############
20+
# Rules by id #
21+
###############
22+
MD004: false # Unordered list style
23+
MD007:
24+
indent: 2 # Unordered list indentation
25+
MD013:
26+
line_length: 400 # Line length 80 is far too short
27+
MD026:
28+
punctuation: ".,;:!。,;:" # List of not allowed
29+
MD029: false # Ordered list item prefix
30+
MD033: false # Allow inline HTML
31+
MD036: false # Emphasis used instead of a heading
32+
MD060: false
33+
#################
34+
# Rules by tags #
35+
#################
36+
blank_lines: false # Error on blank lines

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
repos:
33
- repo: https://github.com/zricethezav/gitleaks
4-
rev: v8.28.0
4+
rev: v8.29.1
55
hooks:
66
- id: gitleaks

action.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,25 @@ runs:
4646
- name: Set env
4747
id: set-env
4848
shell: bash
49-
run: |
50-
echo "HEAD_REF=${{github.event.pull_request.head.ref || github.ref_name}}" >>"${GITHUB_ENV}"
49+
env:
50+
HEAD_REF: ${{github.event.pull_request.head.ref || github.ref_name}}
51+
PR_DESCRIPTION_PREFIX_VALUE: ${{inputs.pr-description-prefix}}
52+
PR_NUMBER: ${{github.event.pull_request.number}}
53+
PR_TITLE_PREFIX: ${{inputs.pr-title-prefix}}
54+
PR_LABELS: ${{inputs.pr-labels}}
55+
BRANCH_NAME_PREFIX: ${{inputs.branch-name-prefix}}
56+
run: | # zizmor: ignore[github-env]
57+
echo "HEAD_REF=${HEAD_REF}" >>"${GITHUB_ENV}"
5158
5259
delimiter="$(openssl rand -hex 8)"
5360
echo "PR_DESCRIPTION_PREFIX<<${delimiter}" >> "$GITHUB_ENV"
54-
echo "${{inputs.pr-description-prefix}}" >> "$GITHUB_ENV"
61+
echo "${PR_DESCRIPTION_PREFIX_VALUE}" >> "$GITHUB_ENV"
5562
echo "${delimiter}" >> "$GITHUB_ENV"
5663
57-
echo "PR_NUMBER=${{github.event.pull_request.number}}" >> "$GITHUB_ENV"
58-
echo "PR_TITLE_PREFIX=${{inputs.pr-title-prefix}}" >> "$GITHUB_ENV"
59-
echo "PR_LABELS=${{inputs.pr-labels}}" >> "$GITHUB_ENV"
60-
echo "BRANCH_NAME_PREFIX=${{inputs.branch-name-prefix}}" >> "$GITHUB_ENV"
64+
echo "PR_NUMBER=${PR_NUMBER}" >> "$GITHUB_ENV"
65+
echo "PR_TITLE_PREFIX=${PR_TITLE_PREFIX}" >> "$GITHUB_ENV"
66+
echo "PR_LABELS=${PR_LABELS}" >> "$GITHUB_ENV"
67+
echo "BRANCH_NAME_PREFIX=${BRANCH_NAME_PREFIX}" >> "$GITHUB_ENV"
6168
# 差分があったときは、コミットを作りpushする
6269
- name: Push
6370
env:

0 commit comments

Comments
 (0)