diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5c8ad26c..9e2a3bdf 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -180,6 +180,9 @@ jobs: SIGNING_ENABLED: ${{ github.event.inputs.signTacoFile }} name: Assemble Tableau Connector runs-on: ubuntu-latest + permissions: + contents: read + id-token: write # Request the GitHub OIDC token used for signing steps: - name: Check out the repo uses: actions/checkout@v2 @@ -200,14 +203,11 @@ jobs: - name: "Configure AWS credentials" if: ${{env.SIGNING_ENABLED == 'true'}} - uses: aws-actions/configure-aws-credentials@v1 + # GitHub OIDC. The signer role trusts only workflows on develop. + uses: aws-actions/configure-aws-credentials@45666896f5d8e0f10ae255413f3a4cdd03bdc8f5 # v6.3.1 with: - role-skip-session-tagging: true - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-west-2 role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - role-external-id: ${{ secrets.AWS_ROLE_EXTERNAL_ID }} role-duration-seconds: 3600 - name: Sign Taco File @@ -278,7 +278,7 @@ jobs: - name: Upload Build if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v7 with: name: documentdbjdbc-${{env.version}}-taco path: ./tableau-connector/target/ diff --git a/tableau-connector/Dockerfile b/tableau-connector/Dockerfile index edeba8ba..7fd826bf 100644 --- a/tableau-connector/Dockerfile +++ b/tableau-connector/Dockerfile @@ -9,6 +9,6 @@ RUN git clone https://github.com/tableau/connector-plugin-sdk.git &&\ cd connector-packager &&\ python3 -m venv .venv &&\ source ./.venv/bin/activate &&\ - python3 setup.py install &&\ + pip install . &&\ python3 -m connector_packager.package /tableau-connector ENTRYPOINT ["bash"] \ No newline at end of file