Skip to content

Commit

Permalink
ci: Pin Github workflow container
Browse files Browse the repository at this point in the history
Attempt to pin the Github workflow container to ubuntu22.04:20240730.2.1
in an effort to understand/resolve an issue.

Errors are being encountered during the `Setup pnpm` step of the
workflow:

    ERROR  Command failed with exit code 128: /usr/bin/git clone [email protected]:al/branch-name-lint.git /home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1846_88d4646c4ad7e809c00bdc72ad859bd1
    Cloning into '/home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1846_88d4646c4ad7e809c00bdc72ad859bd1'...
    [email protected]: Permission denied (publickey).
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.

It seems as though `"al/branch-name-lint#integration/error-handling-issues"`
in package.json is resulting in the use of Git+SSH for cloning.

The long term solution is probably to use a full HTTPS URL in
package.json in order to force the desired cloning protocol, however
the workflow seemed to work when this change was initially implemented
in #12 and it would be good to understand what changed.

The only obvious difference is that a newer version of the Ubuntu 22.04
image has come in to use since the last successful build (20240730 vs.
20240714), so this is simply an experiment to try and pin the build
container to the old version of the image and see if it then works.

**LINKS**

(working)
- https://github.com/al/lionels-legacy/actions/runs/10058074979/job/27800375808
- https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240714.1

(not working)
- https://github.com/al/lionels-legacy/actions/runs/10226099410/job/28295939905
- https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240730.2
  • Loading branch information
al committed Aug 5, 2024
1 parent 2d4bac1 commit 77055c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:

jobs:
build-and-deploy:
container:
image: ghcr.io/actions/runner-images/ubuntu22.04:20240730.2.1

permissions:
contents: write

Expand Down

0 comments on commit 77055c5

Please sign in to comment.