翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
GitHub キュレーションされたアクションの追加
GitHub GitHub CodeCatalyst キュレーションされたアクションはコンソールに表示されるアクションで、 GitHub ワークフロー内でアクションを使用する方法の例として役立ちます。 CodeCatalyst
GitHub キュレーションされたアクションは、識別子で識別される CodeCatalyst-authored GitHub Actions アクションにまとめられます。aws/github-actions-runner@v1
たとえば、 GitHub キュレーションされたアクション OSS は以下のようになります。TruffleHog
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 アクションアクション (で識別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 精選されたアクションをワークフローに追加するには、以下の手順に従います。 GitHub CodeCatalyst ワークフローでのアクションの使用に関する一般的な情報については、を参照してくださいワークフローへの GitHub アクションの統合。
注記
GitHub キュレーションされたアクションのリストにアクションが表示されない場合でも、アクションアクションを使用してワークフローに追加できます。GitHub 詳細については、「「GitHub アクション」アクションの追加」を参照してください。