From 36e054f97b2c97bc0792830d8694861db661d67c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 10 Jan 2025 17:08:00 +0000 Subject: [PATCH] Fix GitHib action workflows (#212) Signed-off-by: Andriy Redko (cherry picked from commit c1f8a55874699e39f9ed5d7fb028f332df417092) Signed-off-by: github-actions[bot] --- .github/workflows/check.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a8d350b..b314152 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,13 +18,11 @@ jobs: # using the same image which is used by opensearch-build team to build the OpenSearch Distribution # this image tag is subject to change as more dependencies and updates will arrive over time image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} - # need to switch to root so that github actions can install runner binary on container without permission issues. - options: --user root - env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true - + options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }} steps: - - uses: actions/checkout@v3 + - name: Run start commands + run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }} + - uses: actions/checkout@v4 - name: Run Gradle (check) run: | # https://github.com/opensearch-project/opensearch-build/issues/4191 @@ -44,7 +42,7 @@ jobs: os: [windows-latest, macos-13] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v3 with: