安全掃描那段註解已經過期:它描述的閘門在 2026-08-21 就拆掉了 - #15
Merged
Merged
Conversation
`security` job 的註解還寫著「**這一組在 PR 上也跑,但裡面只有 Gitleaks 會動**」,以及「閘門下移到被呼叫的那三個 job 上(`security.yml` 裡各自的 `if: github.event_name != 'pull_request'`)」。 **那三條 `if` 已經不存在了**——2026-08-21 隨「CI 成本不再是判準」一起拆掉, 四種掃描現在在 PR 上全部會跑。`security.yml` 自己的註解是對的(它用過去式 記下了那條閘為什麼被移除),沒有跟上的只有呼叫端這一段。 這正是同一個檔案下面幾行已經記過的那個形狀:**一段描述著不存在的機制的 註解,比沒有註解更糟**——讀者會以為這裡已經對照過了,於是沒有人去比對。 而它不會有任何症狀:workflow 照跑,掃描照綠。 改成用過去式記下那個取捨的哪一半失效了(分鐘數不再稀缺,而 「在 `main` 才攔下=已經合併」的代價一直都在),並講明 `needs:` 那道閘為什麼**與成本無關**、所以照樣留著。 十五個倉庫同一段,一起改。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#14 合併之後的續作。那條 PR 已經合併,不能再追蹤新的工作,所以本分支從
main重新起算,這是一條新的 PR。問題
ci.yml的securityjob 上方還寫著:以及
那三條
if已經不存在了——2026-08-21 隨「CI 成本不再是判準」一起拆掉,四種掃描現在在 PR 上全部會跑。security.yml自己的註解是對的(它用過去式記下了那條閘為什麼被移除),沒有跟上的只有呼叫端這一段。為什麼值得單獨修
這正是 #14 自己修掉的那個形狀,又發生了一次:一段描述著不存在的機制的註解,比沒有註解更糟——讀者會以為這裡已經對照過了,於是沒有人去對照。
而它不會有任何症狀:workflow 照跑、掃描照綠、沒有人會收到通知。#14 修的那一段從 2026-08-16 起就是錯的,五天後才被發現,就是因為這一點。
改動
改成用過去式記下那個取捨的哪一半失效了:
main才被攔下的問題,是一個已經合併的問題。並講明
needs:那道閘為什麼與成本無關、所以照樣留著:建置壞掉時掃描吐的是同一個編譯錯誤換一種包裝,多餘的紅燈會稀釋掉真的那一顆。十五個倉庫同一段,本輪一起改。
本機驗證
tools/check-links.py綠;ci.yml以 PyYAML 解析通過(含重複鍵偵測)。