diff --git a/.github/workflows/validate-boards.yml b/.github/workflows/validate-boards.yml index ca657153cc6..61027328a73 100644 --- a/.github/workflows/validate-boards.yml +++ b/.github/workflows/validate-boards.yml @@ -21,6 +21,8 @@ on: - "megamek/src/megamek/common/Building.java" - "megamek/src/megamek/common/Terrains.java" - "megamek/src/megamek/utilities/BoardsValidator.java" +env: + GRADLE_OPTS: "-Dscan.link.VCS=${{ github.event.pull_request.html_url }}" jobs: board_validator: @@ -33,7 +35,10 @@ jobs: java-version: [17] steps: - - uses: actions/checkout@v4 + - name: "Check out MegaMek" + uses: actions/checkout@v4 + with: + path: megamek - name: Set up ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }} uses: actions/setup-java@v4 @@ -43,6 +48,10 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + build-scan-publish: false + build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-use-agree: "yes" - name: Validate Boards working-directory: megamek diff --git a/.github/workflows/validate-namechanges.yml b/.github/workflows/validate-namechanges.yml index 55b1118aca5..9995d1961b3 100644 --- a/.github/workflows/validate-namechanges.yml +++ b/.github/workflows/validate-namechanges.yml @@ -15,6 +15,9 @@ on: - "megamek/data/mechfiles/**.mtf" - "megamek/data/mechfiles/name_changes.txt" +env: + GRADLE_OPTS: "-Dscan.link.VCS=${{ github.event.pull_request.html_url }}" + jobs: name_changes_validator: runs-on: ${{ matrix.os }} @@ -26,7 +29,10 @@ jobs: java-version: [17] steps: - - uses: actions/checkout@v4 + - name: "Check out MegaMek" + uses: actions/checkout@v4 + with: + path: megamek - name: Set up ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }} uses: actions/setup-java@v4 @@ -36,6 +42,10 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + build-scan-publish: false + build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-use-agree: "yes" - name: Validate Boards working-directory: megamek