Skip to content

Commit

Permalink
Set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION
Browse files Browse the repository at this point in the history
Node 20 isn't supported in containers and GitHub actions forces actions
to use Node 20 even when the action is specified to use Node 16.
See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default

This causes e.g. `actions/checkout@v3` to fail since that change.
A workaround is to set `$ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION` to
prevent this change (for now).
  • Loading branch information
Flamefire committed Jul 4, 2024
1 parent fbd796a commit dea97bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
timeout-minutes: 120
runs-on: ${{matrix.os}}
container: ${{matrix.container}}
env: {B2_USE_CCACHE: 1}
env: {B2_USE_CCACHE: 1, ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true}

steps:
- name: Setup environment
Expand Down

0 comments on commit dea97bc

Please sign in to comment.