Skip to content

Commit

Permalink
super-linterアップデート (#1338)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
massongit and renovate[bot] authored Feb 6, 2024
1 parent 7cc0b2a commit d53c75e
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/add-to-task-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
issues:
types:
- opened
permissions: read-all
jobs:
add-to-task-list:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
branches: ["main"]
schedule:
- cron: '23 6 * * 3'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze
Expand All @@ -27,10 +31,6 @@ jobs:
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- .github/workflows/create-release.yml
- scripts/action/**
- action.yml
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/github-actions-cache-cleaner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
schedule:
- cron: '0 21 * * *' # 06:00 JST
workflow_dispatch:
permissions: read-all
jobs:
github-actions-cache-cleaner:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
branches:
- main
pull_request:
permissions:
contents: read
packages: read
statuses: write
###############
# Set the Job #
###############
Expand Down Expand Up @@ -48,9 +52,10 @@ jobs:
# Run Linter against code base #
################################
- name: Lint Code Base
uses: super-linter/super-linter/slim@v5.7.2
uses: super-linter/super-linter/slim@v6.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
LINTER_RULES_PATH: .
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-dockle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
push:
branches:
- main
permissions: read-all
jobs:
update-dockle:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
# npm installを実行し、package.jsonやpackage-lock.jsonに差分があればPRを作る
update-package:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4.1.1
if: github.event_name != 'pull_request' || github.event.action != 'closed'
Expand Down
2 changes: 1 addition & 1 deletion scripts/super_linter/build/set_path.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
npm ci
action="$(yq '.jobs.build.steps[-1].uses' .github/workflows/super-linter.yml)"
PATH="$(docker run --rm --entrypoint '' "ghcr.io/${action//\/slim@/:slim-}" /bin/sh -c 'echo $PATH')"
echo "PATH=/github/workspace/node_modules/.bin:${PATH}" >> "$GITHUB_ENV"
echo "PATH=/github/workspace/node_modules/.bin:${PATH}" >>"$GITHUB_ENV"

0 comments on commit d53c75e

Please sign in to comment.