禁用远程SSH功能,容易封号

This commit is contained in:
519561910@qq.com
2025-01-16 08:10:04 +08:00
parent 035a99ee09
commit 5dcbdb257f
2 changed files with 22 additions and 22 deletions

View File

@@ -3,11 +3,11 @@ name: Build iStore OS X86
on:
repository_dispatch:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: false
default: 'false'
# inputs:
# ssh:
# description: 'SSH connection to Actions'
# required: false
# default: 'false'
schedule:
- cron: 0 16 * * *
@@ -125,12 +125,12 @@ jobs:
cd openwrt
$GITHUB_WORKSPACE/$DIY_P2_SH
- name: SSH 连接到 Actions
uses: P3TERX/ssh2actions@main
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
# - name: SSH 连接到 Actions
# uses: P3TERX/ssh2actions@main
# if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
# env:
# TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
# TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
- name: 下载软件包
id: package

View File

@@ -3,11 +3,11 @@ name: Build iStore OS
on:
repository_dispatch:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: false
default: 'false'
# inputs:
# ssh:
# description: 'SSH connection to Actions'
# required: false
# default: 'false'
schedule:
- cron: 0 16 * * *
@@ -121,12 +121,12 @@ jobs:
cd openwrt
$GITHUB_WORKSPACE/$DIY_P2_SH
- name: SSH 连接到 Actions
uses: P3TERX/ssh2actions@main
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
# - name: SSH 连接到 Actions
# uses: P3TERX/ssh2actions@main
# if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
# env:
# TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
# TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
- name: 下载软件包
id: package