Skip to content

Commit

Permalink
Merge pull request #1534 from aquaproj/ci/fix-permissions
Browse files Browse the repository at this point in the history
ci: remove contents: read
  • Loading branch information
suzuki-shunsuke committed Jan 6, 2023
2 parents 7a339bc + 259b0d2 commit 2efd033
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/actionlint.yaml
Expand Up @@ -11,8 +11,7 @@ on:
branches: [main]
paths:
- .github/**
permissions:
contents: read
permissions: {}
jobs:
default:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/integration-test.yaml
Expand Up @@ -11,8 +11,7 @@ env:
AQUA_LOG_LEVEL: debug
AQUA_LOG_COLOR: always
AQUA_POLICY_CONFIG: ${{ github.workspace }}/aqua-policy.yaml
permissions:
contents: read
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Expand Up @@ -3,16 +3,17 @@ name: Release
on:
push:
tags: [v*]
permissions:
contents: write # required to create a release
id-token: write # required for cosign
permissions: {}
env:
AQUA_POLICY_CONFIG: ${{ github.workspace }}/aqua-policy.yaml
jobs:
build:
runs-on: ubuntu-latest
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
permissions:
contents: write # required to create a release
id-token: write # required for cosign
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/renovate-config-validator.yaml
@@ -1,7 +1,6 @@
name: renovate-config-validator

permissions:
contents: read
permissions: {}

on:
pull_request:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Expand Up @@ -7,8 +7,7 @@ on:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2efd033

Please sign in to comment.