Try the updated oidc with a fix #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: ["supplychain-*"] | |
| pull_request: | |
| branches: ["supplychain-*"] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || 'ubuntu-x64' }} | |
| environment: test_docker | |
| permissions: | |
| id-token: write | |
| contents: read | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout twilio-java | |
| uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3 | |
| - name: Set up Java | |
| uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3 | |
| with: | |
| distribution: "temurin" | |
| java-version: "11" | |
| cache: "maven" | |
| - name: Print Maven settings.xml | |
| run: | | |
| if [ -f ~/.m2/settings.xml ]; then | |
| grep -vi 'password\|token' ~/.m2/settings.xml | |
| else | |
| echo "~/.m2/settings.xml does not exist" | |
| fi | |
| - name: Artifactory OIDC | |
| if: ${{ !github.event.pull_request.head.repo.fork }} | |
| uses: twilio/sdk-actions/artifactory-oidc@601aef28bec511c9071981355d8d4246ad51c756 # oidc_support_setupjava | |
| with: | |
| ecosystem: "maven" | |
| - run: mvn install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V |