# lsif-go-action **Repository Path**: mirrors_sourcegraph/lsif-go-action ## Basic Information - **Project Name**: lsif-go-action - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sourcegraph Go LSIF Indexer GitHub Action This action generate LSIF data from Go source code. See the [LSIF go indexer](https://github.com/sourcegraph/lsif-go) for more details. ## Usage The following inputs can be set. | name | default | description | | ---------------- | --------- | ----------- | | file | dump.lsif | The output file (relative to the repository root). | | project_root | `.` | The root of the repository. | | module_root | `.` | The directory where `go.mod` is located, relative to the repository. | | additional_args | '' | Additional args that are passed directly to `lsif-go`. | The following is a complete example that uses the [upload action](https://github.com/sourcegraph/lsif-upload-action) to upload the generated data to [sourcegraph.com](https://sourcegraph.com). Put this in `.github/workflows/lsif.yaml`. ``` name: LSIF on: - push jobs: index: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Generate LSIF data uses: sourcegraph/lsif-go-action@master - name: Upload LSIF data uses: sourcegraph/lsif-upload-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} ```