diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index d7438bb52..675492b4b 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -13,15 +13,19 @@ jobs: - name: Checkout Source uses: actions/checkout@v4 - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - - uses: jfrog/.github/.github/actions/golangci-lint + - name: Run golangci lint + uses: jfrog/.github/.github/actions/golangci-lint Go-Sec: runs-on: ubuntu-latest steps: - name: Checkout Source uses: actions/checkout@v4 - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - - uses: jfrog/.github/.github/actions/gosec-scanner + - name: Run Go-Sec scanner + uses: jfrog/.github/.github/actions/gosec-scanner diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index cde8b3476..495489cfe 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -9,7 +9,8 @@ jobs: CLAssistant: runs-on: ubuntu-latest steps: - - uses: jfrog/.github/.github/actions/cla + - name: Run CLA Check + uses: jfrog/.github/.github/actions/cla with: event_comment_body: ${{ github.event.comment.body }} event_name: ${{ github.event_name }} diff --git a/.github/workflows/frogbot-scan-pull-request.yml b/.github/workflows/frogbot-scan-pull-request.yml index 0a5e24a4c..40ca11d65 100644 --- a/.github/workflows/frogbot-scan-pull-request.yml +++ b/.github/workflows/frogbot-scan-pull-request.yml @@ -12,7 +12,8 @@ jobs: # "frogbot" GitHub environment can approve the pull request to be scanned. environment: frogbot steps: - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - uses: jfrog/frogbot@v2 env: diff --git a/.github/workflows/frogbot-scan-repository.yml b/.github/workflows/frogbot-scan-repository.yml index a27cab543..231dac9b1 100644 --- a/.github/workflows/frogbot-scan-repository.yml +++ b/.github/workflows/frogbot-scan-repository.yml @@ -17,7 +17,8 @@ jobs: # The repository scanning will be triggered periodically on the following branches. branch: [ "dev" ] steps: - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - uses: jfrog/frogbot@v2 env: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bed02931c..6e98e462d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,7 +29,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - name: Lint run: go vet -v ./... @@ -49,9 +50,11 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - - uses: jfrog/.github/.github/actions/install-local-artifactory + - name: Install local Artifactory + uses: jfrog/.github/.github/actions/install-local-artifactory with: RTLIC: ${{ secrets.RTLIC }} @@ -73,7 +76,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - name: ${{ matrix.suite }} tests run: go test -v github.com/jfrog/jfrog-client-go/tests --timeout 0 --test.${{ matrix.suite }} --rt.url=${{ secrets.PLATFORM_URL }}/artifactory --ds.url=${{ secrets.PLATFORM_URL }}/distribution --xr.url=${{ secrets.PLATFORM_URL }}/xray --xsc.url=${{ secrets.PLATFORM_URL }}/xsc --access.url=${{ secrets.PLATFORM_URL }}/access --rt.user=${{ secrets.PLATFORM_USER }} --rt.password=${{ secrets.PLATFORM_PASSWORD }} --access.token=${{ secrets.PLATFORM_ADMIN_TOKEN }} --ci.runId=${{ runner.os }}-${{ matrix.suite }} @@ -88,7 +92,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - name: pipelines tests run: go test -v github.com/jfrog/jfrog-client-go/tests --timeout 0 --test.pipelines --rt.url=${{ secrets.PLATFORM_URL }}/artifactory --pipe.url=${{ secrets.PLATFORM_URL }}/pipelines --rt.user=${{ secrets.PLATFORM_USER }} --rt.password=${{ secrets.PLATFORM_PASSWORD }} --pipe.accessToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --pipe.vcsToken=${{ secrets.CLI_PIPE_VCS_TOKEN }} --pipe.vcsRepo=${{ secrets.CLI_PIPE_VCS_REPO }} --pipe.vcsBranch=${{ secrets.CLI_PIPE_VCS_BRANCH }} --ci.runId=${{ runner.os }}_pipe @@ -103,9 +108,11 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - uses: jfrog/.github/.github/actions/install-go-with-cache + - name: Setup Go with cache + uses: jfrog/.github/.github/actions/install-go-with-cache - - uses: jfrog/.github/.github/actions/install-local-artifactory + - name: Install local Artifactory + uses: jfrog/.github/.github/actions/install-local-artifactory with: RTLIC: ${{ secrets.RTLIC }}