-
Notifications
You must be signed in to change notification settings - Fork 2k
pin actions, disable cache #8210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
e172aaf
c8c02f8
37b1fc9
b6ec4e5
9087340
5c3a696
2742dc9
6862966
69e889b
51b0d9d
5b3536d
b95fc41
1dac73a
1d43921
d52a674
22e9ad8
905c75c
6dbc0c3
e0bcd08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,25 +17,24 @@ jobs: | |
| if: github.repository == 'apollographql/apollo-server' | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you do this manually? I think it would be better to configure Renovate to do pinning for GHA (https://docs.renovatebot.com/modules/manager/github-actions/#digest-pinning-and-updating) instead of doing it manually; it will leave in an appropriate comment which will allow it to create update PRs which we can hypothetically evaluate. |
||
| with: | ||
| # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install Node with Mise | ||
| uses: jdx/mise-action@v2 | ||
|
|
||
| # Because Mise installs Node, this action mostly just caches node_modules. | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 | ||
| with: | ||
| cache: 'npm' | ||
| cache: false | ||
| env: | ||
| MISE_LOCKED: "1" | ||
|
|
||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| # deliberately not using a cache for action with elevated permissions, see https://tanstack.com/blog/npm-supply-chain-compromise-postmortem | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this comment implies that the cache: false above relates to the npm cache, but really you're just saying that you're not using something like setup-node that does npm cache caching — probably worth being explicit
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tbh., the comment is here primarily so nobody (= no helpful agent) gets the idea of adding a cached npm install or cached anything else - if you have better wording for it, please go for it :)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, the diff is weird here - I did put the comment in the place where previously this code was found:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Understood, but I only understood that because I saw the now-deleted comments :) |
||
| - name: Install Dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Create Release Pull Request / NPM Publish | ||
| uses: changesets/action@v1 | ||
| uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b | ||
| with: | ||
| publish: npm run changeset-publish | ||
| version: npm run changeset-version | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: apollographql/apollo-server
Length of output: 132
Generate and commit the
mise.lockfile to pin tool versions.The
lockfile = truesetting is enabled, but themise.lockfile does not exist in the repository. Without this file, the lockfile setting has no effect and tool versions remain unpinned, breaking reproducibility across environments. Generate the lock file by runningmise lockand commit it to the repository.🤖 Prompt for AI Agents