glab-dependency-firewall
Skill48 starsChanged 3 months agoMITView on GitHub
Run supported package managers through GitLab Dependency Firewall and inspect local firewall activity with glab. Use when enforcing dependency policy for Bundler, gem, Gradle, Maven, npm, pip, Pipenv, pnpm, Poetry, Twine, or uv; summarizing blocked or flagged packages from CI logs; reviewing .gitlab/df/ci-log.json; or troubleshooting Dependency Firewall exit codes. Triggers on dependency firewall, glab df, glab dependency-firewall, package policy, ci-summary, blocked package, flagged package.
- Installs packages
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- cormacc/dotagentsedited, first seen Sep 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- cormacc/dotagents★ 139% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository47 other files it gives its agents.
- gitlab-cli-skillsSkill
- glab-aliasSkill
- glab-apiSkill
- glab-artifact-registrySkill
- glab-attestationSkill
- glab-authSkill
- glab-changelogSkill
- glab-check-updateSkill
- glab-ciSkill
- glab-clusterSkill
- glab-completionSkill
- glab-configSkill
- glab-container-registrySkill
- glab-deploy-keySkill
- glab-duoSkill
- glab-gpg-keySkill
- glab-helpSkill
- glab-incidentSkill
- glab-issueSkill
- glab-iterationSkill
- glab-jobSkill
- glab-labelSkill
- glab-mcpSkill
- glab-milestoneSkill
- glab-mrSkill
- glab-opentofuSkill
- glab-orbitSkill
- glab-packagesSkill
- glab-quick-actionsSkill
- glab-releaseSkill
- glab-repoSkill
- glab-runner-controllerSkill
- glab-runnerSkill
- glab-scheduleSkill
- glab-securefileSkill
- glab-securitySkill
- glab-skillsSkill
- glab-snippetSkill
- glab-ssh-keySkill
- glab-stackSkill
- glab-todoSkill
- glab-tokenSkill
- glab-userSkill
- glab-variableSkill
- glab-versionSkill
- glab-whatsnewSkill
- glab-workitemsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run supported package managers through GitLab Dependency Firewall and inspect recorded activity.
- Distinctive: line 28
Run wrappers inside a Git repository whose GitLab remote identifies the intended project, and verify glab authentication first.
- Very specific: line 44
Use glab help dependency-firewall <wrapper> for every wrapper when generating documentation or automation.
- Very specific: line 70
Treat exit 3 as a policy result, not a transient command failure.
- Distinctive: line 76
Do not assume a log in a repository root applies when the package manager ran in a nested workspace.
- Distinctive: line 83
Do not invent a wrapper from internal support code or a similar package ecosystem.
- Distinctive: line 84
Check the current parent help and official docs for the target glab/GitLab version.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
glab dependency-firewall
Run supported package managers through GitLab Dependency Firewall and inspect recorded activity. This command group is experimental; confirm availability before relying on it in durable automation.
Supported wrappers
Each wrapper first resolves the GitLab project from the current repository and creates a GitLab API client, then obtains that project's Dependency Firewall policy, forwards all remaining arguments to the named package-manager binary, enforces policy on package traffic, and summarizes the run. Project resolution always runs before the package manager starts. The wrappers use the package manager's existing registry, index, or source configuration rather than rewriting it.
| glab command | Executable | Example |
bundle | bundle | glab dependency-firewall bundle install |
gem | gem | glab dependency-firewall gem install rake |
gradle | gradle | glab dependency-firewall gradle build |
maven | mvn | glab dependency-firewall maven verify |
npm | npm | glab dependency-firewall npm ci --ignore-scripts |
pip | pip | glab dependency-firewall pip install requests |
pipenv | pipenv | glab dependency-firewall pipenv install requests |
pnpm | pnpm | glab dependency-firewall pnpm install left-pad |
poetry | poetry | glab dependency-firewall poetry add requests |
twine | twine | glab dependency-firewall twine upload dist/* |
uv | uv | glab dependency-firewall uv pip install requests |
Run wrappers inside a Git repository whose GitLab remote identifies the intended project, and verify glab authentication first. Treat a policy block as authoritative; do not retry outside the wrapper merely to bypass the result.
Wrapper help
Everything after the wrapper name is forwarded verbatim to the package manager. Wrapper commands use DisableFlagParsing, so glab flags such as -h, -R, --repo, or --hostname are not parsed there. Project resolution and GitLab API-client creation still run first; outside a GitLab-remote repository or valid auth context, glab dependency-firewall <wrapper> --help fails before the package manager can show help.
# Parent command and supported wrappers
glab dependency-firewall --help
# glab's wrapper help without invoking the package manager
glab help dependency-firewall npm
glab help dependency-firewall maven
glab help dependency-firewall uvUse glab help dependency-firewall <wrapper> for every wrapper when generating documentation or automation. Do not rely on glab dependency-firewall <wrapper> --help for wrapper discovery.
Summarize CI activity
ci-summary reads .gitlab/df/ci-log.json relative to the current working directory. Run it from the same directory as the package-manager/Dependency Firewall operation that produced the log.
if glab dependency-firewall ci-summary; then
echo "No blocked dependency entries"
else
rc=$?
case "$rc" in
1) echo "Dependency Firewall log could not be read" >&2 ;;
3) echo "Dependency Firewall blocked one or more packages" >&2 ;;
*) echo "Unexpected Dependency Firewall failure: $rc" >&2 ;;
esac
exit "$rc"
fiExit codes:
0: no blocked entries; allow-only, warnings-only, or no recorded activity.1: the log could not be read or parsed.3: one or more entries were blocked.
Treat exit 3 as a policy result, not a transient command failure. Surface the blocked package, version, and reason; do not bypass the policy or rewrite the log. Treat warnings as review input even though they do not fail the command.
Troubleshooting
No activity is reported:
- Confirm
.gitlab/df/ci-log.jsonexists under the current working directory used for the command. - Do not assume a log in a repository root applies when the package manager ran in a nested workspace.
Wrapper help is confusing:
- Use
glab help dependency-firewall <wrapper>. - Direct wrapper invocations always resolve the GitLab project and client before starting the package manager, and glab flags after the wrapper name are passed to the package manager.
A package manager is not listed:
- Do not invent a wrapper from internal support code or a similar package ecosystem.
- Check the current parent help and official docs for the target glab/GitLab version.
The package manager uses the wrong registry/index/source:
- The wrapper intentionally uses existing package-manager configuration.
- Inspect that configuration without printing credentials, then correct it through the package manager's documented workflow rather than expecting glab to rewrite it.
Command reference
See references/commands.md for checksum-verified parent and wrapper help.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

