From 372f672ba6267f1f3d6054628456d2eb2f122135 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Mon, 29 Jan 2024 23:56:13 +0100 Subject: [PATCH] Block deprecated repos in /etc/hosts --- .github/workflows/antora.yml | 4 ++++ .github/workflows/binary-check.yml | 4 ++++ .github/workflows/cmd.yml | 4 ++++ .github/workflows/gradle-wrapper-validation.yml | 4 ++++ .github/workflows/publish.yml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/.github/workflows/antora.yml b/.github/workflows/antora.yml index b9906b2..a92b465 100644 --- a/.github/workflows/antora.yml +++ b/.github/workflows/antora.yml @@ -29,6 +29,10 @@ jobs: (github.event_name == 'schedule' && github.event.repository.fork == true && inputs.run-scheduled-in-forks == true) runs-on: ubuntu-20.04 steps: + - name: Block deprecated repos in /etc/hosts + run: | + sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts + sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/binary-check.yml b/.github/workflows/binary-check.yml index ce12019..79e3f6f 100644 --- a/.github/workflows/binary-check.yml +++ b/.github/workflows/binary-check.yml @@ -37,6 +37,10 @@ jobs: (github.event_name == 'schedule' && github.event.repository.fork == true && inputs.run-scheduled-in-forks == true) runs-on: ubuntu-20.04 steps: + - name: Block deprecated repos in /etc/hosts + run: | + sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts + sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml index ab0c498..4caee4b 100644 --- a/.github/workflows/cmd.yml +++ b/.github/workflows/cmd.yml @@ -104,6 +104,10 @@ jobs: # WA: https://github.community/t/reusable-workflow-with-strategy-matrix/205676/6 matrix: ${{fromJson(needs.prepare-matrix.outputs.matrix)}} steps: + - name: Block deprecated repos in /etc/hosts + run: | + sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts + sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml index 8759d9e..6e922a6 100644 --- a/.github/workflows/gradle-wrapper-validation.yml +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -13,6 +13,10 @@ jobs: name: Gradle Wrapper Validation runs-on: ubuntu-20.04 steps: + - name: Block deprecated repos in /etc/hosts + run: | + sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts + sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 26cb9dc..b6c55f2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,6 +38,10 @@ jobs: runs-on: ubuntu-20.04 if: ${{ github.event.repository.fork == false }} steps: + - name: Block deprecated repos in /etc/hosts + run: | + sudo echo "127.0.0.1 repo.scala-sbt.org" | sudo tee -a /etc/hosts + sudo echo "127.0.0.1 repo.typesafe.com" | sudo tee -a /etc/hosts - name: Checkout uses: actions/checkout@v4 with: