Skip to content

DNM: Call trusty through GH action #6

DNM: Call trusty through GH action

DNM: Call trusty through GH action #6

Workflow file for this run

---
name: Test
on:
pull_request:
jobs:
call-trusty:
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for requesting the JWT
steps:
- name: Call trusty
run: |
# First we request the JWT id-token
tok=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL")
# call trusty
curl -v -H "Authorization: bearer $tok" \
https://gh.trustypkg.dev/v1/report?package_name=uvicorn&package_type=pypi