Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gh-actions-language-server

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-actions-language-server

**GitHub Actions Language Server**

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
169
4.97%
Maintainers
1
Weekly downloads
 
Created
Source

gh-actions-language-server

GitHub Actions Language Server

A lightweight wrapper around @actions/languageserver to simplify installation and usage in CLI tools and LSP (Language Server Protocol) clients.

Why?

The @actions/languageserver module is published without an executable binary (see issue #56), which makes it less convenient to use directly. This package bridges that gap by providing an easy-to-install binary.

Initially, the plan was to contribute a pull request to @actions/languageserver to add a bin field. However, it seems that configuring package exports for this purpose requires some adjustments, so creating this standalone package was a quicker solution.

Note: This package may be archived and deprecated once native support for a bin executable is added to @actions/languageserver.

Installation

To install globally via npm, run:

npm install --global gh-actions-language-server

Configuration for Neovim

If you're using nvim-lspconfig, you can configure the gh-actions-language-server as follows:

Define the Language Server Configuration

Create a new configuration file at lua/lspconfig/configs/gh_actions_ls.lua with the following content:

lua/lspconfig/configs/gh_actions_ls.lua
return {
  default_config = {
    cmd = {
      'gh-actions-language-server',
      '--stdio',
    },
    filetypes = {
      'yaml',
    },
    single_file_support = true,
    root_dir = function(fname)
      if fname:match('.github/workflows') then
        return vim.fn.getcwd()
      end
    end,
  },
}

Initialize the Language Server

Add the following code to initialize the language server:

require('lspconfig').gh_actions_ls.setup({})

Credits

FAQs

Package last updated on 09 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts