{"id":49225470,"url":"https://github.com/tonicai/structural-export-workspace","last_synced_at":"2026-04-24T07:02:10.919Z","repository":{"id":289487917,"uuid":"971000861","full_name":"TonicAI/structural-export-workspace","owner":"TonicAI","description":"A Github Action to export the configuration stored in your Tonic Structural workspace","archived":false,"fork":false,"pushed_at":"2025-04-30T21:13:13.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-30T22:24:30.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TonicAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-22T21:28:29.000Z","updated_at":"2025-04-30T21:09:45.000Z","dependencies_parsed_at":"2025-04-23T15:21:32.071Z","dependency_job_id":"950f980b-5261-4574-8f8f-a26510ec3fa7","html_url":"https://github.com/TonicAI/structural-export-workspace","commit_stats":null,"previous_names":["tonicai/structural-export-workspace"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TonicAI/structural-export-workspace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TonicAI%2Fstructural-export-workspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TonicAI%2Fstructural-export-workspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TonicAI%2Fstructural-export-workspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TonicAI%2Fstructural-export-workspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TonicAI","download_url":"https://codeload.github.com/TonicAI/structural-export-workspace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TonicAI%2Fstructural-export-workspace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32212808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-24T07:02:09.422Z","updated_at":"2026-04-24T07:02:10.908Z","avatar_url":"https://github.com/TonicAI.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Export Workspace Configuration\n\nThis action exports the configuration stored in your Tonic Structural workspace.\n\n## Inputs\n\n- `api_key` (required): Structural API key with access to the workspace\n- `workspace_id` (required): ID of the Structural workspace to export\n- `base-url` (optional): Base URL for Structural API, defaults to 'https://app.tonic.ai'\n- `output_path` (optional): Path where the export file will be saved, defaults to 'workspace-export.json'\n\n## Outputs\n\n- `export_path`: Path to the exported workspace configuration file\n\n## Example Usage\n\n### Basic Usage\n\n```yaml\nsteps:\n  - name: Export Structural workspace\n    id: export\n    uses: TonicAI/structural-export-workspace@v1\n    with:\n      api_key: ${{ secrets.STRUCTURAL_API_KEY }}\n      workspace_id: ${{ vars.STRUCTURAL_WORKSPACE_ID }}\n```\n\n### Complete Workflow Example\n\n```yaml\nname: Export Structural Workspace\n\non:\n  workflow_dispatch:\n    inputs:\n      workspace_id:\n        description: 'ID of the Structural workspace to export'\n        required: true\n        type: string\n\njobs:\n  export:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n\n      - name: Set timestamp\n        id: timestamp\n        run: echo \"timestamp=$(date +'%Y%m%d-%H%M%S')\" \u003e\u003e $GITHUB_OUTPUT\n\n      - name: Export Structural workspace\n        id: export\n        uses: TonicAI/structural-export-workspace@v1\n        with:\n          api_key: ${{ secrets.STRUCTURAL_API_KEY }}\n          workspace_id: ${{ github.event.inputs.workspace_id }}\n          output_path: \"./exports/workspace-config.json\"\n\n      - name: Create timestamped copy\n        run: |\n          cp \"${{ steps.export.outputs.export_path }}\" \"./exports/workspace-config-${{ steps.timestamp.outputs.timestamp }}.json\"\n\n      - name: Commit changes\n        run: |\n          git config --global user.name 'GitHub Action'\n          git config --global user.email 'action@github.com'\n          git add ./exports/\n          git commit -m \"Workspace export $(date +'%Y-%m-%d')\" || echo \"No changes to commit\"\n          git push\n```\n\n## Security\n\nThis action requires a Structural API key with permissions to export the workspace configuration. Store this key as a secret in your GitHub repository and reference it as shown in the example workflow.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonicai%2Fstructural-export-workspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonicai%2Fstructural-export-workspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonicai%2Fstructural-export-workspace/lists"}