Delete .github/workflows/security-scans-pr.yml #16
This file contains 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: Scan and Deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
id-token: write | ||
contents: read | ||
security-events: write | ||
jobs: | ||
scan-with-trivy: | ||
uses: tkhom3/gha-workflows/.github/workflows/scan-with-trivy-config-only.yml@main | ||
Check failure on line 15 in .github/workflows/deploy.yaml
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Cloud Formation Linter with Latest Version | ||
uses: scottbrenner/cfn-lint-action@v2 | ||
- name: Print the Cloud Formation Linter Version & run Linter. | ||
run: | | ||
cfn-lint -t Cloudformation/gd-alerts.yaml | ||
- name: configureawscredentials | ||
id: creds | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCT_NUM }}:role/${{ secrets.AWS_ROLE_NAME }} | ||
role-session-name: deploy-${{ github.sha }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
- name: Deploy CloudFormation | ||
id: gd-alerts | ||
uses: aws-actions/aws-cloudformation-github-deploy@v1 | ||
with: | ||
name: gd-alerts | ||
template: "Cloudformation/gd-alerts.yaml" | ||
no-fail-on-empty-changeset: "1" | ||
parameter-overrides: >- | ||
EmailAddress=${{ secrets.EMAIL_ADDRESS }} |