Error: certificate has expired when executing composite actions

This error appears

2021-11-12T11:48:47.4687527Z ##[group]Setup Java
2021-11-12T11:48:47.4756455Z ##[group]Run actions/setup-java@v2.3.0
2021-11-12T11:48:47.4756942Z with:
2021-11-12T11:48:47.4757445Z   overwrite-settings: false
2021-11-12T11:48:47.4757994Z   java-version: 11
2021-11-12T11:48:47.4758493Z   distribution: temurin
2021-11-12T11:48:47.4758999Z   java-package: jdk
2021-11-12T11:48:47.4759471Z   architecture: x64
2021-11-12T11:48:47.4759967Z   check-latest: false
2021-11-12T11:48:47.4760483Z   server-id: github
2021-11-12T11:48:47.4761033Z   server-username: GITHUB_ACTOR
2021-11-12T11:48:47.4761650Z   server-password: GITHUB_TOKEN
2021-11-12T11:48:47.4762211Z   job-status: success
2021-11-12T11:48:47.4762672Z ##[endgroup]
2021-11-12T11:48:47.6653804Z Trying to resolve the latest version from remote
2021-11-12T11:48:47.7555029Z ##[error]certificate has expired

at FAI-677: Fix dmn-tracing-quarkus · kiegroup/kogito-examples@dd70586 · GitHub

The weird part is the

2021-11-12T11:48:47.6653804Z Trying to resolve the latest version from remote
2021-11-12T11:48:47.7555029Z ##[error]certificate has expired

I’m not able to even determine at which exactly point is failing. This is the pipeline kogito-examples/kogito-examples-pr.yml at 48cba3a374058ca6345b3541142aef9c37d8a46f · kiegroup/kogito-examples · GitHub


    steps:
      - name: Clean Disk Space
        uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main
        if: ${{ matrix.os == 'ubuntu-latest' }}
      - name: Support long paths
        if: ${{ matrix.os == 'windows-latest' }}
        uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main
      - name: Java and Maven Setup
        uses: kiegroup/kogito-pipelines/.ci/actions/maven@main
        with:
          java-version: ${{ matrix.java-version }}
          maven-version: ${{ matrix.maven-version }}
          cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}
      - name: Build Chain
        uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main
        with:
          annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }}
          github-token: "${{ secrets.GITHUB_TOKEN }}"
      - name: Surefire Report
        uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main
        if: ${{ always() }}
        with:
          report_paths: '**/*-reports/TEST-*.xml'

I guess the error is at Java and Maven Setup