Skip to content

Commit

Permalink
super-linterによる指摘事項修正
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit committed Feb 6, 2024
1 parent 4967c21 commit c73e9da
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 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 @@ -7,6 +7,7 @@ on:
issues:
types:
- opened
permissions: read-all
jobs:
add-to-task-list:
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
4 changes: 4 additions & 0 deletions .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
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/[email protected]
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 --prefer-offline
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 c73e9da

Please sign in to comment.