Added origin_file_reference column for jwt schema to track origin token file #347
Workflow file for this run
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: PR Validation | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| print_inputs: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Print Inputs | |
| id: print_inputs | |
| run: | | |
| echo "- Github ref: \`${{ github.ref }}\`" >> $GITHUB_STEP_SUMMARY | |
| extract-infra-commons-tag: | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| resolved_infra_commons_tag: ${{ steps.extract-infra-commons-tag.outputs.infra_commons_tag }} | |
| steps: | |
| - name: Checkout caller repository | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Extract tag from reusable workflow | |
| id: extract-infra-commons-tag | |
| run: | | |
| echo "Extracting tag from reusable workflow (wf version ${{ github.ref }})" | |
| if [ ! -f .github/workflows/pr-validation-main.yaml ]; then | |
| echo "File not found" | |
| exit 1 | |
| fi | |
| fullref=$(yq e '.jobs.validation.uses' .github/workflows/pr-validation-main.yaml) | |
| tag=${fullref#*@} | |
| echo "fullref=$fullref" | |
| echo "tag=$tag" | |
| final_tag="$tag" | |
| echo "infra_commons_tag=$final_tag" >> $GITHUB_OUTPUT | |
| - name: Show extracted tag | |
| run: echo "infra_commons_tag = ${{ steps.extract-infra-commons-tag.outputs.infra_commons_tag }}" | |
| validation: | |
| if: github.event_name == 'pull_request' | |
| name: "Validation - ${{ matrix.environment }}" | |
| needs: [print_inputs, extract-infra-commons-tag] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| environment: [dev-analytics] | |
| secrets: inherit | |
| uses: pagopa/interop-infra-commons/.github/workflows/common-deployment-values-validation.yaml@7c6b84d0c1b013cbab0655215956aa83024153e3 # v1.27.3 | |
| with: | |
| infra_commons_tag: ${{ needs.extract-infra-commons-tag.outputs.resolved_infra_commons_tag }} | |
| environment: ${{ matrix.environment }} | |
| strict_kube_linter_checks: false |