Skip to content

Update deploy.yaml

Update deploy.yaml #17

Workflow file for this run

name: Scan and Deploy
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
security-events: write
jobs:
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 }}