Safety v3.5.1 is now available. Upgrade using "pip install -U safety"
Safety Firewall
LogoLogo
Safety PlatformResearchSign Up
  • Introduction to Safety
  • Safety Firewall
    • Introduction to Safety Firewall
    • Installation and Configuration
      • Uninstalling Firewall
    • Using Firewall
      • Working with Codebases
      • Firewall Monitoring and Management
      • Firewall Policy Management
      • Troubleshooting
  • SAFETY CLI
    • Introduction to Safety CLI Vulnerability Scanning
      • Quick Start Guide
      • Migrating from Safety CLI 2.x to Safety CLI 3.x
    • Installation and Authentication
    • Scanning for Vulnerable and Malicious Packages
      • Viewing Scan Results
      • Available Commands and Inputs
      • Scanning in CI/CD
      • Securing Development Environments
      • License Scanning
      • Exit Codes
      • Scanning in Production
    • Safety Telemetry
  • Vulnerability Remediation
    • Applying Fixes
  • Integration
    • Securing Git Repositories
      • GitHub
        • GitHub Actions
      • GitLab
      • BitBucket
      • Azure DevOps
      • Git Post-Commit Hooks
    • Pipenv
    • Docker Containers
  • Administration
    • Safety Policy Files
    • Project Policies
  • Output
    • Output Options and Recommendations
    • JSON Output
    • SBOM Output
    • HTML Output
    • Detecting Vulnerabilities and Sharing Results via Email
  • Support
    • Support
    • Invalid API Key Error
    • Headless Authentication
    • Implementation Support
    • Global proxy and identity configuration
    • Using Safety in Conda Environments
  • Miscellaneous
    • Understanding Vulnerability Scoring Systems: CVSS and EPSS
    • Release Notes
      • Breaking Changes in Safety 3
    • Research and Blog
    • Changelogs
    • Trust Center
    • Terms of Service
    • Safety 2.x Documentation
Powered by GitBook
LogoLogo

Safety Platform

  • Sign Up
  • Login

Research

  • Security Research & Blog

Resources

  • GitHub Action
  • GitHub

© Safety CLI Cybersecurity Inc.

On this page
  • Creating a Project Policy
  • Migrating your Safety Policy File to a Project Policy
  • Modifying your Default Organization Policy

Was this helpful?

  1. Administration

Project Policies

PreviousSafety Policy FilesNextOutput Options and Recommendations

Last updated 2 months ago

Was this helpful?

Project policies are similar to Safety Policy Files, but take precedence over policy files in cases where a codebase has been onboarded as a Safety Project.

Creating a Project Policy

To create a policy for a project, visit and complete these steps:

  1. Select your project.

  2. Click Project Settings.

  3. Click Policies.

  4. Select your policy and click Edit.

  5. Build your policy using the guided policy builder, or alternatively click Advanced Configuration to build your policy using JSON.

  6. Click Save.

Migrating your Safety Policy File to a Project Policy

We plan to introduce a feature that will automatically detect a local policy file during project creation and replicate this in the Project Policy. Until then, please follow these instructions.

To migrate a local policy file to a Project Policy, visit and complete these steps:

  1. Click Project Settings.

  2. Click Policies.

  3. Select your policy and click Edit.

  4. Scroll down and click Advanced Configuration.

  5. Copy the contents of your local policy file.

  6. Paste the policy file contents into the advanced configuration.

  7. Click Update Policy.

Modifying your Default Organization Policy

  1. From the top navigation items, click Organization.

  2. From the left-hand navigation, click Policies.

  3. Select your policy and click Edit.

  4. Build your policy using the guided policy builder, or alternatively click Advanced Configuration to build your policy using JSON.

  5. Click Save.

Note that updated organization policies will not apply retrospectively to existing project policies, but instead will apply to any newly created projects.

All Organizations in Safety Platform are initialized with a default Project Policy. When a new project is created, this organization policy is applied. You can modify your default organization policy by visiting and following these steps:

https://platform.safetycli.com
https://platform.safetycli.com
https://platform.safetycli.com