Amazon CodeCatalyst は、2025 年 11 月 7 日以降、新規のお客様に公開されなくなります。サービスを使用する場合は、2025 年 11 月 7 日までにサインアップしてください。詳細については、「CodeCatalyst から移行する方法」を参照してください。
翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
キュレートされた GitHub Action を追加する
キュレートされた GitHub Action とは、CodeCatalyst コンソールで利用できる GitHub Action であり、CodeCatalyst ワークフロー内で GitHub Action を使用する方法の例として機能します。
キュレートされた GitHub Actions は、aws/github-actions-runner@v1 識別子で識別される、CodeCatalyst によって作成された GitHub Actions アクションでラップされます。例えば、キュレートされた GitHub Action である TruffleHog OSS
Actions:
TruffleHogOSS_e8:
Identifier: aws/github-actions-runner@v1
Inputs:
Sources:
- WorkflowSource # This specifies that the action requires this Workflow as a source
Configuration:
Steps:
- uses: trufflesecurity/trufflehog@v3.16.0
with:
path: ' ' # Required; description: Repository path
base: ' ' # Required; description: Start scanning from here (usually main branch).
head: ' ' # Optional; description: Scan commits until here (usually dev branch).
extra_args: ' ' # Optional; description: Extra args to be passed to the trufflehog cli.前のコードでは、CodeCatalyst GitHub Actions アクション (aws/github-actions-runner@v1 で識別される) は TruffleHog OSS アクション (trufflesecurity/trufflehog@v3.16.0 で識別される) をラップし、CodeCatalyst ワークフローで機能するようにしています。
このアクションを設定するには、with: の下にある空の文字列を実際の値に置き換えます。以下に例を示します。
Actions:
TruffleHogOSS_e8:
Identifier: aws/github-actions-runner@v1
Inputs:
Sources:
- WorkflowSource # This specifies that the action requires this Workflow as a source
Configuration:
Steps:
- uses: trufflesecurity/trufflehog@v3.16.0
with:
path: ./
base: main # Required; description: Start scanning from here (usually main branch).
head: HEAD # Optional; description: Scan commits until here (usually dev branch).
extra_args: '‐‐debug ‐‐only-verified' # Optional; description: Extra args to be passed to the trufflehog cli.キュレートされた GitHub Action をワークフローに追加する手順は次のとおりです。CodeCatalyst ワークフローでの GitHub Action の使用に関する一般的な情報については、「GitHub Actions との統合」を参照してください。
注記
キュレートされたアクションのリストに GitHub Action が表示されない場合は、GitHub Actions アクションを使用してワークフローに追加できます。詳細については、「GitHub Actions アクションを追加する」を参照してください。