diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 100be39e0df..7f8805c8796 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,7 +24,7 @@ on: jobs: analyze: name: Analyze - runs-on: [besu-research-ubuntu-16] + runs-on: [besu-research-ubuntu-8] permissions: actions: read contents: read @@ -40,13 +40,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - - name: Set up Java - uses: actions/setup-java@v3 - with: - distribution: adopt - java-version: 17 - # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 @@ -60,7 +53,6 @@ jobs: # Autobuild failed (OOM) # Hence, supply memory args for gradle build - run: | - JAVA_OPTS="-Xmx1000M" ./gradlew --no-scan compileJava - + JAVA_OPTS="-Xmx2048M" ./gradlew --no-scan compileJava - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml index 2be77e8c2ea..4af0e5644ff 100644 --- a/.github/workflows/gradle-wrapper-validation.yml +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -5,7 +5,13 @@ on: [push, pull_request] jobs: validation: name: "Gradle Wrapper Validation" - runs-on: [besu-research-ubuntu-8] + runs-on: [ self-hosted, Linux ] steps: + - name: export runner UID + run: echo "runner_uid=$UID" >> $GITHUB_ENV - uses: actions/checkout@v3 - uses: gradle/wrapper-validation-action@v1 + - name: Correct Ownership in GITHUB_WORKSPACE directory + uses: peter-murray/reset-workspace-ownership-action@v1 + with: + user_id: ${{ env.runner_uid }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c9b2328208..540e016556d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: types: released jobs: dockerPromoteX64: - runs-on: [besu-research-ubuntu-16] + runs-on: [besu-research-ubuntu-8] steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml index e1c61cadea8..d6fb408471d 100644 --- a/.github/workflows/repolinter.yml +++ b/.github/workflows/repolinter.yml @@ -14,11 +14,18 @@ on: - main jobs: - build: - runs-on: [besu-research-ubuntu-16] - container: ghcr.io/todogroup/repolinter:v0.10.1 + lint: + runs-on: [ self-hosted, Linux ] steps: + - name: export runner UID + run: echo "runner_uid=$UID" >> $GITHUB_ENV - name: Checkout Code uses: actions/checkout@v3 - - name: Lint Repo - run: bundle exec /app/bin/repolinter.js --rulesetUrl https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/main/repo_structure/repolint.json --format markdown + - name: 'Run Repolinter' + uses: newrelic/repolinter-action@v1 + with: + config_url: https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/main/repo_structure/repolint.json + - name: Correct Ownership in GITHUB_WORKSPACE directory + uses: peter-murray/reset-workspace-ownership-action@v1 + with: + user_id: ${{ env.runner_uid }}