Fix: Fixed hung scans bug, status tracking, error handling, & node de… #43
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: Deploy AWS Lambda - Scan HTML | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - 'services/aws-lambda-scan-html/**' | |
| - '.github/workflows/deploy-aws-lambda-scan-html.yml' | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| AWS_ROLE: arn:aws:iam::380610849750:role/github-deploy-equalifyeverything-equalify | |
| AWS_REGION: us-east-2 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| sparse-checkout: | | |
| package.json | |
| package-lock.json | |
| services/aws-lambda-scan-html/ | |
| shared/ | |
| sparse-checkout-cone-mode: false | |
| - name: Build artifacts | |
| run: | | |
| npm ci | |
| cd ./services/aws-lambda-scan-html/ | |
| npm run dist | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: ${{ env.AWS_ROLE }} | |
| role-session-name: github-deploy-aws-lambda-scan-html | |
| aws-region: ${{ env.AWS_REGION }} | |
| - name: Deploy Lambda Function | |
| uses: aws-actions/aws-lambda-deploy@v1 | |
| with: | |
| function-name: aws-lambda-scan-html | |
| code-artifacts-dir: ./services/aws-lambda-scan-html/dist | |
| handler: lambda.handler | |
| runtime: nodejs22.x |