Skip to content

Secure CI workflows against supply-chain attacks - #1393

Merged
raucao merged 2 commits into
remotestorage:masterfrom
DougReeder:master
Jun 23, 2026
Merged

Secure CI workflows against supply-chain attacks#1393
raucao merged 2 commits into
remotestorage:masterfrom
DougReeder:master

Conversation

@DougReeder

Copy link
Copy Markdown
Contributor
  1. CI: removes unneeded permissions
  2. CI: pins version of 3rd-party actions
  3. CI: drops Node.js v20, adds Node.js v26

To test: push branch to the master branch of your personal repo, in GitHub Actions tab, observe that test-and-lint and release-drafter complete successfully, and notify-website-repo only fails because "Parameter token or opts.auth is required"

@DougReeder DougReeder changed the title CI: secures agains supply-chain attacks CI: secures workflows against supply-chain attacks Jun 22, 2026
@raucao raucao changed the title CI: secures workflows against supply-chain attacks Secure CI workflows against supply-chain attacks Jun 23, 2026

@raucao raucao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🙏

@raucao
raucao merged commit 4e19533 into remotestorage:master Jun 23, 2026
3 checks passed
@raucao

raucao commented Jun 23, 2026

Copy link
Copy Markdown
Member

@DougReeder Apparently, the actions were already locked down, and this PR made the runs fail on master (but for some reason not for the PR itself):

https://github.com/remotestorage/remotestorage.js/actions/runs/28010199071

@DougReeder

Copy link
Copy Markdown
Contributor Author

Good catch! I've updated the Actions Permissions for the repository, trimming the version from the allowed actions, so they won't be blocked by policy.

If we want to be really secure, we could also pin our GitHub actions to a full-length commit SHA, and require SHAs for every action.

@raucao

raucao commented Jun 23, 2026

Copy link
Copy Markdown
Member

OK, thanks.

It's definitely nicer to have these configs checked into the repo(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants