All Today

🔒 Swift developers debate a command for finding known flaws in dependencies

· 1 min

In brief


💬 Swift developers are discussing a command that would look for known security flaws in the software packages a project uses. The proposed `swift package audit` command would compare the project’s resolved package versions with security advisories. The discussion surfaced a problem with simple name matching that could cause the tool to miss warnings. The command is still a proposal.


📚 One participant showed that a database can file advisories for the same library under its full repository address or under a shorter name. A lookup using only the address would miss some entries. The author added a check for both forms. When a result matches only the short name, the draft implementation also checks that the advisory links to the right repository, so it can exclude unrelated packages with the same name.

🗄️ The forum is also discussing which database to use by default. Under the proposal, it is contacted only when the audit is explicitly run. Organizations could use an internal server, and the output would flag packages the command could not check.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service