Skip to content

Policy subcommand - #234

Merged
puerco merged 3 commits into
slsa-framework:mainfrom
puerco:policy-subcommand
Jul 23, 2025
Merged

Policy subcommand#234
puerco merged 3 commits into
slsa-framework:mainfrom
puerco:policy-subcommand

Conversation

@puerco

@puerco puerco commented Jul 22, 2025

Copy link
Copy Markdown
Member

This adds the initial policy subcommand. For now it supports two operations: view and create. This command will be able to do more with policies such as updating and evaluating.

Note: This needs #233 and a rebase

> sourcetool policy --help

sourcetool policy: configure SLSA source policies for a repo

The policy subcommands can be used to view, create and update the source
policy for a repository. The policy family has two subcommands:

sourcetool policy view
Shows current repository policy for a repository checjed into the SLSA community
policy repo.

sourcetool policy create
Creates a new policy for a repository and, optionally, check it into the
SLSA community repository.

Usage:
  sourcetool policy [command]

Available Commands:
  create      creates a source policy for a repository
  view        view the policy of a repository

Signed-off-by: Adolfo García Veytia (Puerco) puerco@carabiner.dev

puerco added 3 commits July 23, 2025 13:33
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
@puerco
puerco force-pushed the policy-subcommand branch from 6dec6d5 to 14ad5da Compare July 23, 2025 19:33
@puerco
puerco merged commit 1f8654f into slsa-framework:main Jul 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant