
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
github.com/huangdaiyi/glua-async
Advanced tools
An async/await implement for gopher-lua.
go get github.com/CuberL/glua-async
First, you need to modify your blocking function by wrapping the blocking part(sleep, i/o, etc) in async.AsyncRun. And the return values of the async.AsyncRun will be the return values of the await.
func Sleep(L *lua.LState) int {
sec := L.CheckInt(1)
caller := L.CheckString(2)
async.AsyncRun(func() []lua.LValue {
time.Sleep(time.Second * time.Duration(sec))
return []lua.LValue{lua.LString(caller)}
}, L)
return 0
}
And you can use it in your function. Use async to start a coroutine and use await to wait some blocking result in an async function.
function main(str)
-- A
async(function()
for i=3, 1, -1 do
result = await(sleep, 1, "a")
print("it's "..result)
end
end)
-- B
async(function()
for i=3, 1, -1 do
result = await(sleep, 2, "b")
print("it's "..result)
end
end)
-- C
async(function()
for i=3, 1, -1 do
result = await(sleep, 3, "c")
print("it's "..result)
end
end)
return str
end
Finally, you can call main function, and you also need to wrap your function in async.WrapAsyncFunc.
L.CallByParam(lua.P{
Fn: async.WrapAsyncFunc(L, L.GetGlobal("main").(*lua.LFunction)),
NRet: 1,
Protect: true,
}, lua.LString("hello"))
for i := 1; i <= L.GetTop(); i++ {
log.Println(L.Get(i).String())
}
FAQs
Unknown package
Did you know?

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.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.