Skip to content

Commit

Permalink
ワークフローのpermissionを明示的に指定する (#1762)
Browse files Browse the repository at this point in the history
* ドキュメントビルド(CI用)のワークフローにコンテンツの読み取り権限を明示的に追加

* 古いアーティファクト削除ワークフローにコンテンツの読み取り権限を明示的に追加

* Azure AD B2Cサンプルのワークフローにコンテンツの読み取り権限を明示的に追加

* Dressca consumer frontend のCIワークフローにコンテンツの読み取り権限を明示的に追加

* 古いアーティファクト削除ワークフローにアクションの書き込み権限を追加

* 各Jobに対してcontent readの権限を割当て
  • Loading branch information
tsuna-can-se authored Dec 27, 2024
1 parent 994ac67 commit 09b8af4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-documents-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# cspell:ignore endgroup fjogeleit markdownlint softprops textlintignore textlintrc webapps yamlignore
name: ドキュメントのビルド (CI用)

permissions:
contents: read

on:
pull_request:
branches: [main]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
name: 古いアーティファクトの削除

permissions:
actions: write
contents: read

on:
workflow_dispatch:
inputs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/samples-azure-ad-b2c-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
build-frontend:
name: 'フロントエンドアプリケーションのビルド'
runs-on: ubuntu-latest
permissions:
contents: read
env:
NO_COLOR: "1" # 文字化け防止のためカラーコードを出力しない
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/samples-dressca-consumer-frontend.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

name: dressca-consumer-frontend CI

permissions:
contents: read

on:
pull_request:
branches: [main]
Expand Down

0 comments on commit 09b8af4

Please sign in to comment.