Skip to content

Commit

Permalink
docs: update permissions to use new none format (#68)
Browse files Browse the repository at this point in the history
GitHub actions now has a 'none-all' shorthand[^1]

> You can use the following syntax to disable permissions for all of the available scopes:
>
> ```
> permissions: {}
>

This is the same behaviour as before, but is more intuitive than `actions: none`

[^1]: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

Signed-off-by: Jamie Magee <[email protected]>
  • Loading branch information
JamieMagee authored Apr 1, 2022
1 parent b4f5574 commit 9f7b96f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 94 deletions.
96 changes: 8 additions & 88 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
permissions: {}
name: Install Cosign and test presence in path
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3
Expand All @@ -42,17 +32,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
permissions: {}
name: Install existing release of Cosign and test presence in path
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3
Expand All @@ -74,17 +54,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
permissions: {}
name: Install Custom Cosign and test presence in path
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3
Expand All @@ -109,17 +79,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
permissions: {}
name: Install Cosign v0.6.0 and test presence in path
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3
Expand All @@ -145,17 +105,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
permissions: {}
name: Install Cosign v0.6.0 and test presence in path with pre installed libpcsclite1 package
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3
Expand Down Expand Up @@ -183,17 +133,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
permissions: {}
name: Try to install a wrong Cosign
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3
Expand All @@ -208,17 +148,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
permissions: {}
name: Install Custom Cosign and test presence in path
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3
Expand Down Expand Up @@ -249,17 +179,7 @@ jobs:
# TODO: uncomment when we remove the replace int he cosign go.mod
# test_cosign_with_go_install:
# runs-on: ubuntu-latest
# permissions:
# actions: none
# checks: none
# contents: none
# deployments: none
# issues: none
# packages: none
# pull-requests: none
# repository-projects: none
# security-events: none
# statuses: none
# permissions: {}
# name: Try to install cosign with go
# steps:
# - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
test_cosign_action:
runs-on: ubuntu-latest

permissions:
actions: none
permissions: {}

name: Install Cosign and test presence in path
steps:
Expand All @@ -45,8 +44,7 @@ jobs:
test_cosign_action:
runs-on: ubuntu-latest

permissions:
actions: none
permissions: {}

name: Install Cosign and test presence in path
steps:
Expand All @@ -65,8 +63,7 @@ jobs:
test_cosign_action:
runs-on: ubuntu-latest

permissions:
actions: none
permissions: {}

name: Install Cosign via go install
steps:
Expand Down

0 comments on commit 9f7b96f

Please sign in to comment.