Skip to content

Downloads files that I have no permission to run #40

Description

@tmcw

I just switched a CI pipeline to use install-cli-action but after succeeding for a few times, we got this consistent failure:

Validating version number: 'latest-beta'
Version number 'latest-beta' is valid
Resolving version: latest-beta
Getting latest-beta version number
Downloading 1Password CLI from:
https://cache.agilebits.com/dist/1P/op2/pkg/v2.36.0-beta.01/op_linux_amd64_v2.36.0-beta.01.zip
Installing 1Password CLI
/usr/bin/unzip -o -q /home/runner/work/_temp/cb5b5767-ff0c-47dc-b430-bad445a169db
1Password CLI installed
0s
Run op environment read xxx >> "$GITHUB_ENV"
/home/runner/work/_temp/69cfc06c-338b-4b66-8baa-0a014fe2e7e9.sh: line 1:
/home/runner/work/_temp/459366ad-d9f2-4dbe-b462-8f848fe5ca03/op: Permission denied
Error: Process completed with exit code 126.

The workflow looks like:

      - name: Install 1Password CLI
        uses: 1password/install-cli-action@v3
        with:
          version: latest-beta
      - name: Load 1Password environment
        env:
          OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
        run: |
          chmod +x "$(which op)"
          op environment read xxx >> "$GITHUB_ENV"

It looks like either the 1Password CDN is serving broken packages or the install-cli-action can't consistently unzip and activate the op binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions