{"id":36624838,"url":"https://github.com/sanyarnd/applocker","last_synced_at":"2026-01-12T09:30:46.876Z","repository":{"id":42468386,"uuid":"186632159","full_name":"sanyarnd/applocker","owner":"sanyarnd","description":" Provides file-based locking mechanism with inter-process communication support","archived":false,"fork":false,"pushed_at":"2022-11-12T01:59:56.000Z","size":803,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T13:02:51.737Z","etag":null,"topics":["desktop","java","jvm","library","single-instance"],"latest_commit_sha":null,"homepage":"https://sanyarnd.github.io/applocker","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanyarnd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-14T13:49:32.000Z","updated_at":"2023-12-22T17:36:58.000Z","dependencies_parsed_at":"2023-01-21T18:16:46.960Z","dependency_job_id":null,"html_url":"https://github.com/sanyarnd/applocker","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sanyarnd/applocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanyarnd%2Fapplocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanyarnd%2Fapplocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanyarnd%2Fapplocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanyarnd%2Fapplocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanyarnd","download_url":"https://codeload.github.com/sanyarnd/applocker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanyarnd%2Fapplocker/sbom","scorecard":{"id":800163,"data":{"date":"2025-08-11","repo":{"name":"github.com/sanyarnd/applocker","commit":"c7dccfda83a843af42d0dfa9356fd84664ab9fe3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sanyarnd/applocker/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sanyarnd/applocker/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/sanyarnd/applocker/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/sanyarnd/applocker/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/sanyarnd/applocker/build.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.1.2 not signed: https://api.github.com/repos/sanyarnd/applocker/releases/17536094","Warn: release artifact 1.1.1 not signed: https://api.github.com/repos/sanyarnd/applocker/releases/17518696","Warn: release artifact 1.1 not signed: https://api.github.com/repos/sanyarnd/applocker/releases/17507683","Warn: release artifact 1.0.6 not signed: https://api.github.com/repos/sanyarnd/applocker/releases/17467062","Warn: release artifact 1.0.5 not signed: https://api.github.com/repos/sanyarnd/applocker/releases/17465686","Warn: release artifact 1.1.2 does not have provenance: https://api.github.com/repos/sanyarnd/applocker/releases/17536094","Warn: release artifact 1.1.1 does not have provenance: https://api.github.com/repos/sanyarnd/applocker/releases/17518696","Warn: release artifact 1.1 does not have provenance: https://api.github.com/repos/sanyarnd/applocker/releases/17507683","Warn: release artifact 1.0.6 does not have provenance: https://api.github.com/repos/sanyarnd/applocker/releases/17467062","Warn: release artifact 1.0.5 does not have provenance: https://api.github.com/repos/sanyarnd/applocker/releases/17465686"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool detected","details":["Info: SAST configuration detected: Sonar","Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T10:13:18.009Z","repository_id":42468386,"created_at":"2025-08-23T10:13:18.009Z","updated_at":"2025-08-23T10:13:18.009Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["desktop","java","jvm","library","single-instance"],"created_at":"2026-01-12T09:30:46.780Z","updated_at":"2026-01-12T09:30:46.856Z","avatar_url":"https://github.com/sanyarnd.png","language":"Java","readme":"# AppLocker\n![Build Status](https://github.com/sanyarnd/applocker/actions/workflows/build.yml/badge.svg)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=io.github.sanyarnd%3Aapp-locker\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=io.github.sanyarnd%3Aapp-locker)\n\nAppLocker is a small library which provides the often missing single instance functionality.\n\n# Features\n* Safe: based on file channel locking, lock will be released even in case of power outage\n* An arbitrary `AppLocker` has the ability to communicate with the `AppLocker` which currently owns the lock\n* Lightweight (~20kb) \n* No transitive dependencies\n* JDK8+ support\n\n# Quick Start\nThe usage flow typically looks like this:\n* Acquire an instance of `AppLocker` class\n* Invoke `AppLocker#lock`\n* Handle possible errors\n\nTo get the `AppLocker` you must invoke static `AppLocker#create` method. \n\nThis call will return `AppLocker.Builder` instance with a set of `#set` and `#on` methods.\n\nAll methods are optional and have sane defaults.\n\n`#set` methods allow congiguring interactions with filesystem and how `AppLocker` will handle incoming messages in case it was able to successfully acquire the lock.\n\n```java\nAppLocker locker = AppLocker.create(\"lockID\")\n    .setPath(Paths.get(\"\"))                // where to store locks (default: \"\")\n    .setIdEncoder(this::encode)             // map `lockID` to filesystem name (default: \"SHA-1\")\n    .setMessageHandler(msg -\u003e process(msg)) // handle messages (default: NULL) \n```\n\n`#on` methods allow handling errors that may occur during the `AppLocker#lock` call.\n\n```java\nAppLocker locker = AppLocker.create(\"lockID\")\n    .onSuccess(this::logLocking)       // success callback (default: NULL)\n    .onBusy(message, this::logAndExit) // send message to the instance which currently owns the lock and invoke callback (default: NULL)\n    .onFail(this::logErrorAndExit)     // serious error happened during the lock (default: re-throw exception)\n```\n\nInvoke `#build` method to finish the building procedure and retrieve `AppLocker`:\n```java\nAppLocker locker = AppLocker.create(\"lockID\").build();\n```\n\nIf you don't want to use the `#on` methods, you can handle exceptions directly:\n```java\nAppLocker locker = AppLocker.create(\"lockID\").build();\ntry {\n    locker.lock();\n} catch (LockingBusyException ex) {\n} catch (LockingException ex) {\n}\n```\n\nMore details can be found in [JavaDocs](https://sanyarnd.github.io/applocker/apidocs/index.html).\n\n# Download\nMaven:\n```xml\n\u003cdependency\u003e \n    \u003cgroupId\u003eio.github.sanyarnd\u003c/groupId\u003e \n    \u003cartifactId\u003eapp-locker\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle:\n```gradle\ncompile 'io.github.sanyarnd:app-locker:1.1.2'\n```\n \nStandalone jars are available on [releases](https://github.com/sanyarnd/applocker/releases) page.\n\nMore download options available in [Bintray](https://bintray.com/sanya-rnd/maven-projects/applocker) repository.\n\n# Changelog\nSee [CHANGELOG.md](CHANGELOG.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanyarnd%2Fapplocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanyarnd%2Fapplocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanyarnd%2Fapplocker/lists"}