@@ -45,7 +45,7 @@ Here is how you can quickly setup policy-as-code.
4545``` yaml
4646# Policy as Code
4747- name : Advance Security Policy as Code
48- uses : advanced-security/policy-as-code@v2.8.0
48+ uses : advanced-security/policy-as-code@v2.10.1
4949` ` `
5050
5151> [!WARNING]
@@ -61,15 +61,15 @@ The Policy as Code project is a self-contained Python based CLI tool.
6161**Bash / Zsh:**
6262
6363` ` ` bash
64- git clone --branch "v2.8.0 " https://github.com/advanced-security/policy-as-code.git && cd ./policy-as-code
64+ git clone --branch "v2.10.1 " https://github.com/advanced-security/policy-as-code.git && cd ./policy-as-code
6565
6666./policy-as-code --help
6767` ` `
6868
6969**Powershell:**
7070
7171` ` ` Powershell
72- git clone --branch "v2.8.0 " https://github.com/advanced-security/policy-as-code.git
72+ git clone --branch "v2.10.1 " https://github.com/advanced-security/policy-as-code.git
7373cd policy-as-code
7474
7575.\p olicy-as-code.ps1 --help
@@ -84,23 +84,35 @@ For Policy as Code to work correctly, you need to have the following permissions
8484
8585- [required] Repository Permissions
8686 - [`security_events : read`][permissions]
87- - [Dependabot Alerts][permissions-dependabot]
8887 - [Code Scanning][permissions-codescanning]
89- - [Secret Scanning][permissions-secretscanning]
9088 - [`content : read`][permissions]
9189 - [Dependency Graph][permissions-dependencygraph] / [Dependency Licenses][permissions-dependencygraph]
9290 - [`pull-requests : write`][permissions]
9391 - Policy as Code Pull Request Summary
92+ - ["Secret scanning alerts" repository permissions (read)][permissions-secretscanning]
93+ - ⚠️ GitHub App or PAT only, not Actions Token
94+ - ["Dependabot alerts" repository permissions (read)][permissions-dependabot]
95+ - ⚠️ GitHub App or PAT only, not Actions Token
9496- [optional] Policy Repository
9597 - `content : read` to be able to clone external sources of the policies
9698
99+ > [!WARNING]
100+ > Secret Scanning and Dependabot Alerts results cannot be accessed using the Actions Token, use a GitHub App
101+
102+ **GitHub App:**
103+
104+ - Contents
105+ - [Code scanning alerts][permissions-codescanning]
106+ - [Dependabot alerts][permissions-dependabot]
107+ - [Secret scanning alerts][permissions-secretscanning]
108+
97109**[Action Permissions Example][permissions]:**
98110
99111` ` ` yaml
100112# workflow or job level
101113permissions:
102- content : read
103- security_events : read
114+ contents : read
115+ security-events : read
104116 # pull request summaries
105117 pull-requests: write
106118` ` `
@@ -128,7 +140,7 @@ Here is an example of using a simple yet cross-organization using Policy as Code
128140` ` ` yaml
129141# Compliance
130142- name: Advance Security Policy as Code
131- uses: advanced-security/policy-as-code@v2.8 .0
143+ uses: advanced-security/policy-as-code@2.10 .0
132144 with:
133145 # The owner/repo of where the policy is stored
134146 policy: GeekMasher/security-queries
0 commit comments