bug: Claude Platform on AWS (aws-external-anthropic) always returns 401 — duplicate content-type in SigV4 canonical string #2809
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: Check Duplicate Issues | |
| on: | |
| issues: | |
| types: [opened, edited] | |
| jobs: | |
| check-duplicate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| contents: read | |
| steps: | |
| - name: Check for potential duplicates | |
| uses: wow-actions/potential-duplicates@4d4ea0352e0383859279938e255179dd1dbb67b5 # v1.1.0 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| label: potential-duplicate | |
| threshold: 0.6 | |
| reaction: eyes | |
| comment: | | |
| **⚠️ Potential duplicate detected** | |
| This issue appears similar to existing issue(s): | |
| {{#issues}} | |
| - [#{{number}}]({{html_url}}) - {{title}} ({{accuracy}}% similar) | |
| {{/issues}} | |
| Please review the linked issue(s) to see if they address your concern. If this is not a duplicate, please provide additional context to help us understand the difference. | |
| - name: Checkout close script | |
| if: github.event.action == 'opened' | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| with: | |
| sparse-checkout: .github/scripts | |
| persist-credentials: false | |
| - name: Set up Python | |
| if: github.event.action == 'opened' | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Auto-close if high-confidence duplicate | |
| if: github.event.action == 'opened' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| python3 .github/scripts/close_duplicate_issues.py \ | |
| --issue-number ${{ github.event.issue.number }} \ | |
| --repo ${{ github.repository }} \ | |
| --threshold 0.85 \ | |
| --close |