![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
github.com/jiazhoulvke/gui-dialog
cross-platform gui dialog program. base on https://github.com/sqweek/dialog
requirements:
OSX: uses Cocoa's NSAlert/NSSavePanel/NSOpenPanel classes
Win32: uses MessageBox/GetOpenFileName/GetSaveFileName (via package github.com/TheTitanrain/w32)
Linux: uses Gtk's MessageDialog/FileChooserDialog (via cgo; requires gtk3 development packages)
Ubuntu
sudo apt install libgtk-3-dev
install gui-dialog:
go install github.com/jiazhoulvke/gui-dialog@latest
Usage of gui-dialog:
--file_dialog_type string load,save (default "load")
--filter strings file filter. example: jpg,png,gif
--filter_desc string file filter description. example: pictures
--message_dialog_type string info,error,yes_or_no (default "info")
-m, --msg string message info
-o, --output_type string json,text (default "text")
-d, --start_dir string start directory
--start_file string start file
--title string title
-t, --type string file,dir,msg (default "file")
gui-dialog -t msg --title=greeting --msg="你好,世界!"
gui-dialog -t msg --message_dialog_type=error --title="Alert!" --msg="dangerous"
gui-dialog -t msg --message_dialog_type=yes_or_no --msg="Are you ok?" -o json
console output:
{ "value": true, "error": "" }
gui-dialog -t msg --message_dialog_type=yes_or_no --msg="Are you ok?" -o text
console output:
true
gui-dialog --start_file="C:\Windows\System32\help.exe" --filter_desc="programs" --filter="exe" -o json
console output:
{ "value": "C:\\Windows\\System32\\help.exe", "error": "" }
if canceled, console output:
{ "value": "", "error": "Cancelled" }
gui-dialog -t dir --start_dir="C:\Windows\System32\"
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.