Skip to content

Commit

Permalink
fix: disable cosign and slsa-verifier (#605)
Browse files Browse the repository at this point in the history
* fix: disable cosign and slsa-verifier

* fix: disable Cosign and slsa-verifier

* ci: fix lint errors
  • Loading branch information
suzuki-shunsuke authored Mar 20, 2024
1 parent 384c1dc commit baef452
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: test
on:
pull_request: {}
permissions: {}
env:
AQUA_DISABLE_COSIGN: "true"
AQUA_DISABLE_SLSA: "true"
jobs:
path-filter:
# Get changed files to filter jobs
Expand Down Expand Up @@ -52,6 +55,13 @@ jobs:
with:
app_id: ${{secrets.APP_ID}}
private_key: ${{secrets.APP_PRIVATE_KEY}}
repositories: >-
["${{github.event.repository.name}}"]
permissions: >-
{
"contents": "write",
"pull_requests": "write"
}
- run: gh -R "$GITHUB_REPOSITORY" pr merge --squash --auto --delete-branch "$PR_NUMBER"
env:
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}} # Use GitHub App to trigger GitHub Actions Workflow by merge commit.
Expand Down
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ runs:
shell: bash
env:
AQUA_VERSION: ${{ inputs.aqua_version }}
AQUA_DISABLE_COSIGN: "true" # TODO remove this line. https://github.com/aquaproj/aqua/issues/1665
AQUA_DISABLE_SLSA: "true" # TODO remove this line. https://github.com/aquaproj/aqua/issues/1665
- run: aqua policy allow
working-directory: ${{ inputs.working_directory }}
Expand All @@ -162,3 +164,5 @@ runs:
shell: bash
env:
AQUA_OPTS: ${{ inputs.aqua_opts }}
AQUA_DISABLE_COSIGN: "true" # TODO remove this line. https://github.com/aquaproj/aqua/issues/1665
AQUA_DISABLE_SLSA: "true" # TODO remove this line. https://github.com/aquaproj/aqua/issues/1665
3 changes: 3 additions & 0 deletions aqua-installer
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ done

shift $((OPTIND - 1))

export AQUA_DISABLE_COSIGN=true
export AQUA_DISABLE_SLSA=true

bootstrap_version=v2.22.0
checksums="e66e19c3cb2da10ddeb8dfd5dc523d909e0fba87fa1337db017160fba3d90414 aqua_darwin_amd64.tar.gz
493ab58b6b93bea2a9b9a144cac8aea90213f88b484d3de27352a2c5fb9b90e2 aqua_darwin_arm64.tar.gz
Expand Down

0 comments on commit baef452

Please sign in to comment.