homebridge-securitysystem 7.5.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-package.yml +2 -2
- package/.github/workflows/bump-version.yml +9 -9
- package/.github/workflows/dependency-review.yml +1 -1
- package/.github/workflows/publish-release.yml +3 -3
- package/README.md +2 -2
- package/SECURITY.md +2 -2
- package/package.json +2 -3
- package/src/index.js +0 -1
- package/.github/workflows/codeql.yml +0 -76
|
@@ -27,25 +27,25 @@ jobs:
|
|
|
27
27
|
|
|
28
28
|
steps:
|
|
29
29
|
- name: Checkout branch
|
|
30
|
-
uses: actions/checkout@
|
|
30
|
+
uses: actions/checkout@v4
|
|
31
31
|
|
|
32
|
-
- name:
|
|
33
|
-
uses: MiguelRipoll23/
|
|
34
|
-
id:
|
|
32
|
+
- name: Create tag name
|
|
33
|
+
uses: MiguelRipoll23/create-tag-name@v2.0.0
|
|
34
|
+
id: create-tag-name
|
|
35
35
|
with:
|
|
36
36
|
channel: ${{ inputs.channel }}
|
|
37
37
|
|
|
38
38
|
- name: Update version
|
|
39
|
-
uses: reedyuk/npm-version@1.2.
|
|
39
|
+
uses: reedyuk/npm-version@1.2.2
|
|
40
40
|
with:
|
|
41
|
-
version: ${{ steps.
|
|
41
|
+
version: ${{ steps.create-tag-name.outputs.tag-name }}
|
|
42
42
|
|
|
43
43
|
- name: Create pull request
|
|
44
44
|
uses: peter-evans/create-pull-request@v5
|
|
45
45
|
with:
|
|
46
|
-
branch: version/${{ steps.
|
|
47
|
-
commit-message: ${{ steps.
|
|
48
|
-
title: Bump version to ${{ steps.
|
|
46
|
+
branch: version/${{ steps.create-tag-name.outputs.tag-name }}
|
|
47
|
+
commit-message: ${{ steps.create-tag-name.outputs.tag-name }}
|
|
48
|
+
title: Bump version to ${{ steps.create-tag-name.outputs.tag-name }}
|
|
49
49
|
body: Automated pull request triggered by a new release.
|
|
50
50
|
labels: new-release,ignore-for-release
|
|
51
51
|
reviewers: MiguelRipoll23
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
echo "tag-name=$tag_name" >> $GITHUB_OUTPUT
|
|
28
28
|
|
|
29
29
|
- name: Checkout branch
|
|
30
|
-
uses: actions/checkout@
|
|
30
|
+
uses: actions/checkout@v4
|
|
31
31
|
|
|
32
32
|
- name: Create tag
|
|
33
33
|
run: |
|
|
@@ -59,10 +59,10 @@ jobs:
|
|
|
59
59
|
|
|
60
60
|
steps:
|
|
61
61
|
- name: Checkout repository
|
|
62
|
-
uses: actions/checkout@
|
|
62
|
+
uses: actions/checkout@v4
|
|
63
63
|
|
|
64
64
|
- name: Setup node
|
|
65
|
-
uses: actions/setup-node@
|
|
65
|
+
uses: actions/setup-node@v4
|
|
66
66
|
|
|
67
67
|
with:
|
|
68
68
|
registry-url: https://registry.npmjs.org/
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
❤️ [One-time donation](https://www.paypal.com/donate/?hosted_button_id=CQTHU44XTXK2L)
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ If you already have [Homebridge](https://github.com/homebridge/homebridge) insta
|
|
|
19
19
|
<div align="left">
|
|
20
20
|
<img align="right" width="205" height="445" src="./.github/demo.jpg">
|
|
21
21
|
<p>Want to know how it looks like? It's pretty customizable, you can configure it to show as many switches as you like.</p>
|
|
22
|
-
<p>What you are seeing at your right is <b>the friendliest</b> configuration that you can start with
|
|
22
|
+
<p>What you are seeing at your right is <b>the friendliest</b> configuration that you can start with. Each <code>Trip</code> switch that you see can only trip the security system if the mode is currently set. This allows you to create logic-less automations from the very Home app that comes already installed on iOS.</p>
|
|
23
23
|
<p>There are also <code>Mode</code> switches which let you run automations that interact with your accessories when a mode is changed or set modes bypassing HomeKit confirmation dialogs.</p>
|
|
24
24
|
<p>A web server, webhooks or even shell commands are available to integrate the security system with other devices or services plus a plenty of more settings to make this plugin your own DIY security system.</p>
|
|
25
25
|
<p>Homebridge / HOOBS UI is recommended to configure the plugin, for additional help please check the <a href="https://github.com/MiguelRipoll23/homebridge-securitysystem/wiki">Wiki</a> page.</p>
|
package/SECURITY.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-securitysystem",
|
|
3
3
|
"displayName": "Homebridge Security System",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.0",
|
|
5
5
|
"description": "Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -37,12 +37,11 @@
|
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": "
|
|
40
|
+
"node": "^18.15.0 || ^20.7.0",
|
|
41
41
|
"homebridge": ">=0.2.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"express": "^4.17.1",
|
|
45
|
-
"node-fetch": "^2.6.7",
|
|
46
45
|
"node-persist": "^3.0.5"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
package/src/index.js
CHANGED
|
@@ -2,7 +2,6 @@ const fs = require("fs");
|
|
|
2
2
|
const path = require("path");
|
|
3
3
|
const storage = require("node-persist");
|
|
4
4
|
const { spawn } = require("child_process");
|
|
5
|
-
const fetch = require("node-fetch");
|
|
6
5
|
const express = require("express");
|
|
7
6
|
|
|
8
7
|
const packageJson = require("../package.json");
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
-
# to commit it to your repository.
|
|
3
|
-
#
|
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
-
# or to provide custom queries or build logic.
|
|
6
|
-
#
|
|
7
|
-
# ******** NOTE ********
|
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
-
# supported CodeQL languages.
|
|
11
|
-
#
|
|
12
|
-
name: "CodeQL"
|
|
13
|
-
|
|
14
|
-
on:
|
|
15
|
-
push:
|
|
16
|
-
branches: ["main"]
|
|
17
|
-
paths-ignore:
|
|
18
|
-
- "**.md"
|
|
19
|
-
pull_request:
|
|
20
|
-
types: [opened, reopened, synchronize, ready_for_review]
|
|
21
|
-
# The branches below must be a subset of the branches above
|
|
22
|
-
branches: ["main"]
|
|
23
|
-
paths-ignore:
|
|
24
|
-
- "**.md"
|
|
25
|
-
schedule:
|
|
26
|
-
- cron: "37 23 * * 5"
|
|
27
|
-
|
|
28
|
-
jobs:
|
|
29
|
-
analyze:
|
|
30
|
-
name: Analyze
|
|
31
|
-
runs-on: ubuntu-latest
|
|
32
|
-
permissions:
|
|
33
|
-
actions: read
|
|
34
|
-
contents: read
|
|
35
|
-
security-events: write
|
|
36
|
-
|
|
37
|
-
strategy:
|
|
38
|
-
fail-fast: false
|
|
39
|
-
matrix:
|
|
40
|
-
language: ["javascript"]
|
|
41
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
42
|
-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
43
|
-
|
|
44
|
-
steps:
|
|
45
|
-
- name: Checkout repository
|
|
46
|
-
uses: actions/checkout@v3
|
|
47
|
-
|
|
48
|
-
# Initializes the CodeQL tools for scanning.
|
|
49
|
-
- name: Initialize CodeQL
|
|
50
|
-
uses: github/codeql-action/init@v2
|
|
51
|
-
with:
|
|
52
|
-
languages: ${{ matrix.language }}
|
|
53
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
54
|
-
# By default, queries listed here will override any specified in a config file.
|
|
55
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
56
|
-
|
|
57
|
-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
58
|
-
# queries: security-extended,security-and-quality
|
|
59
|
-
|
|
60
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
61
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
|
62
|
-
- name: Autobuild
|
|
63
|
-
uses: github/codeql-action/autobuild@v2
|
|
64
|
-
|
|
65
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
66
|
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
67
|
-
|
|
68
|
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
69
|
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
70
|
-
|
|
71
|
-
# - run: |
|
|
72
|
-
# echo "Run, Build Application using script"
|
|
73
|
-
# ./location_of_script_within_repo/buildscript.sh
|
|
74
|
-
|
|
75
|
-
- name: Perform CodeQL Analysis
|
|
76
|
-
uses: github/codeql-action/analyze@v2
|