Skip to content

uv Script Execution is Failing even without Sandbox #167

@anantshri

Description

@anantshri

Another thing to consider with uv we can run scripts via uv
https://docs.astral.sh/uv/guides/scripts/

currently with pmg sandbox disabled also i am getting errors

for example a script of mine fetches youtube videos

Video: https://www.youtube.com/watch?v=XXXXXX
  Error fetching transcript: HTTPSConnectionPool(host='www.youtube.com', port=443): Max retries exceeded with url: /watch?v=Gs685rQ3zNE (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1081)')))

removed id for privacy.

Unaliased uv and script works just fine.

current config in use below

transitive: true
transitive_depth: 5
include_dev_dependencies: false
paranoid: false
skip_event_logging: false
event_log_retention_days: 7
proxy_mode: true
trusted_packages:
  - purl: pkg:npm/@safedep/pmg
    reason: "PMG is a trusted package for PMG"
sandbox:
  enabled: false
  enforce_always: false
  policy_templates:
    npm-restrictive-override:
      path: ./profiles/npm-restrictive.yml
  policies:
    npm:
      enabled: true
      profile: npm-restrictive # Built-in profile, template name, or path to custom YAML
    pnpm:
      enabled: true
      profile: pnpm-restrictive
    npx:
      enabled: true
      profile: npx
    pnpx:
      enabled: true
      profile: npx
    yarn:
      enabled: true
      profile: npm-restrictive
    bun:
      enabled: true
      profile: npm-restrictive
    pip:
      enabled: true
      profile: pypi-restrictive
    pip3:
      enabled: true
      profile: pypi-restrictive
    poetry:
      enabled: true
      profile: pypi-restrictive
    uv:
      enabled: true
      profile: pypi-restrictive

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions