diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6ffaf0..7ddaef1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,12 +27,12 @@ jobs: contents: write steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - run: ansible-galaxy install -r ./provision/requirements.yml - uses: pre-commit/action@v3.0.0 - name: Setup - uses: hashicorp/setup-terraform@v2 + uses: hashicorp/setup-terraform@v2.0.3 with: terraform_version: 1.3.7 @@ -41,7 +41,7 @@ jobs: terragrunt_version: 0.43.0 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4 + uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4.0.0 with: role-to-assume: ${{ secrets.ROLE }} aws-region: eu-west-2 @@ -69,7 +69,7 @@ jobs: echo "${{ secrets.ID_ECDSA }}" > key.txt - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4 + uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4.0.0 with: role-to-assume: ${{ secrets.ROLE }} aws-region: eu-west-2 @@ -136,10 +136,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - name: Login to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@v3.0.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -147,12 +147,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v5.0.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v5.0.0 with: context: ./consumer push: ${{ github.event_name != 'pull_request' }}