1919 - name : Setup Bun
2020 uses : oven-sh/setup-bun@v2
2121 with :
22- bun-version : 1.2.8
22+ bun-version : latest
2323
2424 - name : Configure AWS credentials
2525 uses : aws-actions/configure-aws-credentials@v4
@@ -28,16 +28,16 @@ jobs:
2828 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2929 aws-region : ${{ env.AWS_REGION }}
3030
31- # Check what changed
31+ # Check what changed - Using dorny/paths-filter instead of compromised tj-actions
3232 - name : Check changed files
3333 id : changed-files
34- uses : tj-actions/changed-files@v44
34+ uses : dorny/paths-filter@v3
3535 with :
36- files_yaml : |
36+ filters : |
3737 infra:
38- - apps/infra/**
38+ - ' apps/infra/**'
3939 web:
40- - apps/web/**
40+ - ' apps/web/**'
4141
4242 # Login to ECR (needed for both paths)
4343 - name : Login to Amazon ECR
4646
4747 # Path 1: Infrastructure changes - let Pulumi handle everything
4848 - name : Deploy infrastructure with Pulumi
49- if : steps.changed-files.outputs.infra_any_changed == 'true'
49+ if : steps.changed-files.outputs.infra == 'true'
5050 run : |
5151 cd apps/infra
5252 bun install
5555
5656 # Path 2: Code-only changes - build image and update ECS directly
5757 - name : Build and push Docker image
58- if : steps.changed-files.outputs.infra_any_changed != 'true' && steps.changed-files.outputs.web_any_changed == 'true'
58+ if : steps.changed-files.outputs.infra != 'true' && steps.changed-files.outputs.web == 'true'
5959 working-directory : ./apps/web
6060 env :
6161 ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
@@ -102,7 +102,7 @@ jobs:
102102
103103 # Update ECS service (only if we built a new image)
104104 - name : Update ECS service
105- if : steps.changed-files.outputs.infra_any_changed != 'true' && steps.changed-files.outputs.web_any_changed == 'true'
105+ if : steps.changed-files.outputs.infra != 'true' && steps.changed-files.outputs.web == 'true'
106106 run : |
107107 aws ecs update-service \
108108 --cluster pathfinder-cluster \
@@ -116,4 +116,4 @@ jobs:
116116 - name : Deployment complete
117117 run : |
118118 echo "✅ Deployment completed successfully!"
119- echo "🎯 Deployment type: ${{ steps.changed-files.outputs.infra_any_changed == 'true' && 'Infrastructure + App' || 'App Only' }}"
119+ echo "🎯 Deployment type: ${{ steps.changed-files.outputs.infra == 'true' && 'Infrastructure + App' || 'App Only' }}"
0 commit comments