diff --git a/.github/workflows/broken-link-check.yml b/.github/workflows/broken-link-check.yml index b84e2dbe..191501a4 100644 --- a/.github/workflows/broken-link-check.yml +++ b/.github/workflows/broken-link-check.yml @@ -20,7 +20,7 @@ jobs: args: --no-progress --accept '200..=299, 401, 403, 405' . - name: "Send Slack alert" if: ${{ failure() }} - uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0 + uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} diff --git a/.github/workflows/check_508_compliance.yml b/.github/workflows/check_508_compliance.yml index b7063f00..f27b6a69 100644 --- a/.github/workflows/check_508_compliance.yml +++ b/.github/workflows/check_508_compliance.yml @@ -35,7 +35,7 @@ jobs: TARGETS_TO_SCAN="${TARGETS_TO_SCAN} ${TARGET_BASE_URL}/docsV2.html" TARGETS_TO_SCAN="${TARGETS_TO_SCAN} ${TARGET_BASE_URL}/updates.html" docker run --init --rm --cap-add=SYS_ADMIN mcp/puppeteer:latest@sha256:11bacd79778b42ebe041a9e2fc18a8c3500bf1362e5bca5bf2ae9dd011be5847 $TARGETS_TO_SCAN - - uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0 + - uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 name: Slack Success with: method: chat.postMessage @@ -48,7 +48,8 @@ jobs: text: "SUCCESS: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|Static Site 508 Compliance> completed against `${{ steps.target-base.outputs.TARGET_BASE_URL }}`" mrkdown_in: - text - - uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0 + text: "Static site 508 compliance check successful" + - uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 name: Slack failure if: ${{ failure() }} with: @@ -62,3 +63,4 @@ jobs: text: "FAILURE: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|Static Site 508 Compliance> completed against `${{ steps.target-base.outputs.TARGET_BASE_URL }}`" mrkdown_in: - text + text: "Static site 508 compliance check failed" diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index a876eb8c..aa3f735f 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -45,7 +45,7 @@ jobs: with: node-version: 24 - name: Run quality gate scan - uses: sonarsource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0 + uses: sonarsource/sonarqube-scan-action@299e4b793aaa83bf2aba7c9c14bedbb485688ec4 # 7.1.0 with: args: -Dsonar.projectKey=bcda-dpc-static-site diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f1279e0e..ece7ce00 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -93,7 +93,7 @@ jobs: - name: Run quality gate scan if: ${{ inputs.env == 'stage' }} - uses: sonarsource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0 + uses: sonarsource/sonarqube-scan-action@299e4b793aaa83bf2aba7c9c14bedbb485688ec4 # 7.1.0 with: args: -Dsonar.projectKey=bcda-dpc-static-site @@ -103,6 +103,7 @@ jobs: -Dsonar.projectVersion=${{ github.ref_name == 'main' && github.sha || 'branch' }} -Dsonar.qualitygate.wait=true -Dsonar.ci.autoconfig.disabled=true + -Dsonar.branch.target=${{ github.base_ref }} - name: "Sync _site" run: aws s3 sync _site/ s3://"$TARGET_BUCKET"/ $(["${{ inputs.target_environment }}" == 'prod'] && echo "--delete") @@ -118,7 +119,7 @@ jobs: DISTRIBUTION_ID=`aws cloudfront list-distributions --query "DistributionList.Items[].{Id:Id, OriginId: Origins.Items[0].Id}[?OriginId=='$TARGET_BUCKET'].Id" --output text` aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths '/*' - - uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0 + - uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 name: Slack Success with: method: chat.postMessage @@ -131,8 +132,9 @@ jobs: text: "SUCCESS: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|static site version> `${{ inputs.static_repo_ref }}` deployed to ${{ inputs.env }} environment." mrkdown_in: - text + text: "SUCCESS: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|static site version> `${{ inputs.static_repo_ref }}` deployed to ${{ inputs.env }} environment." - - uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0 + - uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 name: Slack failure if: ${{ failure() }} with: @@ -146,3 +148,4 @@ jobs: text: "FAILURE: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|static site version> `${{ inputs.static_repo_ref }}` deployed to ${{ inputs.env }} environment." mrkdown_in: - text + text: "FAILURE: <${{ github.server_url}}/${{ github.repository}}/actions/runs/${{ github.run_id }}|static site version> `${{ inputs.static_repo_ref }}` deployed to ${{ inputs.env }} environment."