diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7ca941b..2d4cc71 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,12 +2,18 @@ name: "Build"
on:
push:
+permissions:
+ contents: write
+ repository-projects: write
+ actions: write
+ statuses: read
+
jobs:
release:
name: Release
# runs-on: ubuntu-latest
- # Multi platfrom support
+ # Multi platform support
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
@@ -18,7 +24,7 @@ jobs:
steps:
- name: Wait Tests
id: test_result
- uses: Sibz/await-status-action@v1.0.1
+ uses: Sibz/await-status-action@v1
with:
contexts: test-status
authToken: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml
index 937035a..fa4134a 100644
--- a/.github/workflows/lint-code.yml
+++ b/.github/workflows/lint-code.yml
@@ -8,10 +8,30 @@ on:
branches:
- "develop"
+permissions:
+ contents: write
+ repository-projects: write
+ actions: write
+ statuses: read
+
jobs:
format:
runs-on: ubuntu-latest
steps:
+ - name: Wait Tests
+ id: test_result
+ uses: Sibz/await-status-action@v1.0.1
+ with:
+ contexts: test-status
+ authToken: ${{ secrets.GITHUB_TOKEN }}
+ timeout: 30
+ - name: Check Test Result
+ if: steps.test_result.outputs.result != 'success'
+ run: |
+ echo "feiled ${{ steps.test_result.outputs.failedCheckNames }}"
+ echo "status ${{ steps.test_result.outputs.failedCheckStates }}"
+ exit 1
+
- name: Checkout
uses: actions/checkout@v3
with:
@@ -22,7 +42,7 @@ jobs:
shell: bash
id: extract_branch
- name: Setup
- run: echo "Set up your programing language here."
+ run: echo "Set up your programming language here."
# uses: actions/setup-go@v2
- name: Install formatter
run: echo "Install formatter (Example; npm install prettier)"
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
index 9f912b2..904b18c 100644
--- a/.github/workflows/release-drafter.yml
+++ b/.github/workflows/release-drafter.yml
@@ -1,4 +1,4 @@
-# Referrence: https://qiita.com/shun198/items/176037432f7efc8fde26
+# Reference: https://qiita.com/shun198/items/176037432f7efc8fde26
name: Create Release Note
@@ -10,7 +10,9 @@ on:
- develop
permissions:
- contents: read
+ contents: write
+ repository-projects: write
+ actions: write
jobs:
release:
@@ -22,4 +24,3 @@ jobs:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b9222a9..ccbf427 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -4,16 +4,22 @@ on:
types:
- published
+permissions:
+ contents: write
+ repository-projects: write
+ actions: write
+ statuses: read
+
jobs:
release:
name: Release
runs-on: ubuntu-latest
- # Multi platfrom support
+ # Multi platform support
# strategy:
- # matrix:
- # platform: [macos-latest, ubuntu-latest, windows-latest]
- # fail-fast: false
+ # matrix:
+ # platform: [macos-latest, ubuntu-latest, windows-latest]
+ # fail-fast: false
# runs-on: ${{ matrix.platform }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d1b3de6..507ca0b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -3,6 +3,8 @@ name: Test CLI
on:
push:
+permissions:
+ statuses: write
jobs:
test:
@@ -13,16 +15,25 @@ jobs:
uses: actions/checkout@v3
- name: Test
- run: echo "Write Test here"
-
- test-status:
- name: Test status
- runs-on: ubuntu-latest
- needs: test
- steps:
+ id: test_step
+ continue-on-error: true
+ run: |
+ echo "Write Test here"
- name: Set Check Status Success
- uses: Sibz/github-status-action@v1.1.1
+ uses: Sibz/github-status-action@v1
+ if: steps.test_step.outcome == 'success'
with:
context: test-status
authToken: ${{ secrets.GITHUB_TOKEN }}
state: success
+ - name: Set Check Status Failure
+ uses: Sibz/github-status-action@v1
+ if: steps.test_step.outcome == 'failure'
+ with:
+ context: test-status
+ authToken: ${{ secrets.GITHUB_TOKEN }}
+ state: failure
+
+ - name: Fail
+ uses: Sibz/action-always-fail@v1.0.1
+ if: steps.test_step.outcome == 'failure'
diff --git a/.github/workflows/translate-readme.yml b/.github/workflows/translate-readme.yml
index f32d470..ab84537 100644
--- a/.github/workflows/translate-readme.yml
+++ b/.github/workflows/translate-readme.yml
@@ -7,6 +7,11 @@ on:
paths:
- ".github/workflows/translate-readme.yml"
- "README.md"
+
+permissions:
+ contents: write
+ repository-projects: write
+
jobs:
translate:
runs-on: ubuntu-latest
diff --git a/README.en.md b/README.en.md
index 20b5136..279d5b0 100644
--- a/README.en.md
+++ b/README.en.md
@@ -71,7 +71,7 @@ To use this app, please register the following command in your path.
- `.github/dependabot.yml`of`package-ecosystem`Set the value to (e.g. npm,yarn,pip)
- CodeQL setup
-
- - [対応言語](https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/)
+ - [supported language](https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/)
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 1beb04e..09b5947 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -70,7 +70,7 @@ go build ../build.sh
- Dependabot 设置
- `.github/dependabot.yml`的`package-ecosystem`将值设置为(例如 npm、yarn、pip)
- CodeQL 设置
- -
+ - [HTTPS://Dev.class method.键盘/articles/GitHub-code-scanning/](https://dev.classmethod.jp/articles/github-code-scanning/)
- [支持的语言](https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/)
diff --git a/README.zh-TW.md b/README.zh-TW.md
index fcf99b0..6f028e4 100644
--- a/README.zh-TW.md
+++ b/README.zh-TW.md
@@ -77,7 +77,7 @@ go build ../build.sh
## 對於貢獻者🤝
-如果您想為這個專案做出貢獻,[投稿指南](docs/README.md)請閱讀。
+如果您想為這個專案做出貢獻,[コントリービュートガイド](docs/README.md)請閱讀。
## 參考✨