Skip to content

Commit

Permalink
Remove contents:read from privacy-check (#855)
Browse files Browse the repository at this point in the history
* Remove contents:read from privacy-check

Signed-off-by: Ian Lewis <ianlewis@google.com>

* Update action doc

Signed-off-by: Ian Lewis <ianlewis@google.com>

Signed-off-by: Ian Lewis <ianlewis@google.com>
  • Loading branch information
ianlewis authored Sep 15, 2022
1 parent fbbc34a commit 3f2a755
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/privacy-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Privacy check"
description: "Checks if a repository is private and fails if it is."
inputs:
token:
description: "The GitHub Actions token. It must have contents:read or repo scope."
description: "The GitHub Actions token."
required: false
default: ${{ github.token }}
override:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/builder_go_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ on:
jobs:
privacy-check:
runs-on: ubuntu-latest
permissions:
contents: read # Needed to read repo info.
steps:
- name: Check private repos
uses: slsa-framework/slsa-github-generator/.github/actions/privacy-check@a3c7a56c8749c2c423f01bbcfd063315efc07a22
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/generator_container_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ on:
jobs:
privacy-check:
runs-on: ubuntu-latest
permissions:
contents: read # Needed to read repo info.
steps:
- name: Check private repos
uses: slsa-framework/slsa-github-generator/.github/actions/privacy-check@a3c7a56c8749c2c423f01bbcfd063315efc07a22
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/generator_generic_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ on:
jobs:
privacy-check:
runs-on: ubuntu-latest
permissions:
contents: read # Needed to read repo info.
steps:
- name: Check private repos
uses: slsa-framework/slsa-github-generator/.github/actions/privacy-check@a3c7a56c8749c2c423f01bbcfd063315efc07a22
Expand Down

0 comments on commit 3f2a755

Please sign in to comment.