Test Action Installation #2526
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Action Installation | |
# This workflow tests that users can successfully install | |
# this GitHub Action. This workflow runs automatically | |
# every 6 hours. | |
on: | |
schedule: | |
- cron: '0 */6 * * *' # runs every 6 hours | |
push: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
daily_job: | |
runs-on: ubuntu-latest | |
environment: | |
name: plugin-development | |
steps: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ secrets.AWS_REGION }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
role-to-assume: ${{ secrets.AWS_IAM_ROLE }} | |
- name: Test Amazon Inspector GitHub Actions plugin | |
uses: aws-actions/[email protected] | |
with: | |
artifact_type: 'container' | |
artifact_path: 'alpine:latest' | |
display_vulnerability_findings: "enabled" | |
sbomgen_version: "latest" | |
# only run if the previous step failed | |
- name: Notify maintainers of installation failure | |
if: ${{ failure() }} | |
run: echo "this feature is not implemented" | |