Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ooshare-action

Create and reveal ooshare one-time secrets right from your GitHub Actions workflows. Uses the official ooshare CLI — the same end-to-end AES-256-GCM encryption as the web, zero-knowledge, self-destructing links.

Usage

Create a secret and capture its URL

steps:
  - uses: dhdtech/ooshare-action@v1
    id: share
    with:
      command: create
      text: ${{ secrets.MY_SECRET }}   # use a GitHub secret, never a literal
      ttl: 24

  - name: Use the share URL
    run: echo "Share this: ${{ steps.share.outputs.url }}"

The url output contains the decryption key — treat it as sensitive (post it to a private channel, not a public log).

Create from a file

- uses: dhdtech/ooshare-action@v1
  id: share
  with:
    command: create
    file: ./contract.pdf

Reveal a secret

- uses: dhdtech/ooshare-action@v1
  id: reveal
  with:
    command: view
    url: ${{ steps.share.outputs.url }}

- name: Use the secret
  run: echo "${{ steps.reveal.outputs.text }}" > secret.txt

The secret is deleted from the server on first view — reveal it only once.

Reveal a secret that has a file attachment

- uses: dhdtech/ooshare-action@v1
  id: reveal
  with:
    command: view
    url: ${{ steps.share.outputs.url }}
    output: ./attachments   # directory or exact path

- name: Use the attachment
  run: |
    echo "attachment at: ${{ steps.reveal.outputs.attachment }}"
    cat "${{ steps.reveal.outputs.attachment }}"

Create with a file + viewer language

- uses: dhdtech/ooshare-action@v1
  with:
    command: create
    text: ${{ secrets.NOTE }}
    file: ./contract.pdf
    ttl: 48
    lang: es          # recipient sees the page in Spanish

Inputs

Name Description Default
command create or view —
text Secret text (create) — use a GitHub secret ''
file Path to a file to attach (create) ''
ttl Expiry in hours (1–72) 24
lang Viewer language for the link (en, zh, es, hi, ar, pt) en
url Share URL to reveal (view) ''
output Where to write a decoded attachment (view): directory or exact path. Read the bytes via the attachment output in later steps ''
version ooshare CLI release version v1.0.3
api-url API base URL https://api.ooshare.io
origin Site origin for the share URL https://ooshare.io

Outputs

Name Description
url The one-time share URL (create) — sensitive (contains the key)
id The secret ID (create)
has_attachment true/false — whether a file was attached (create)
text The revealed secret (view)
attachment Path where the decoded file was written (view)
attachment-mime MIME type of the decoded file (view)

How it works

The action downloads the ooshare binary for your runner (Linux/macOS/Windows × amd64/arm64) from the ooshare.io releases, verifies its SHA-256 against the release SHA256SUMS before running it, then runs ooshare create or ooshare view with JSON output and exposes the URL / secret as outputs. No plaintext ever reaches the ooshare server — encryption happens in the binary, the master key travels only in the URL fragment. Every CLI release is additionally cosign-signed with SLSA provenance.

Security

  • Never hardcode secret text in your workflow file — use ${{ secrets.* }}.
  • The url output embeds the decryption key. Share it over a private channel.
  • Secrets are one-time: after view, the server deletes them.
  • The ooshare binary is checked against the release SHA256SUMS before execution, so a tampered or swapped release artifact fails the step instead of running. Pin the CLI with the version input (default v1.0.3) and bump it deliberately — a pinned version is the supply-chain-safe choice.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors