Visitar URL original
Merge pull request #1747 from actions/yacaovsnc/update-dependency (#1) · dev394582/cache@5293c36 · GitHub
Skip to content

Commit 5293c36

Browse files
hub966lvpxkotokazecdce8pkotewar
authored
Merge pull request actions#1747 from actions/yacaovsnc/update-dependency (#1)
* 3.2.6 * Bump @actions/cache version * Update package-lock.json * Fix zstd breaking after new version release * Fix license * Update Cross-OS Caching tips * docs: Add missing permission in cache delete example (actions#1123) * Add `lookup-only` option (actions#1041) * Add new actions/cache version (with dryRun support) * Add dry-run option * Changes after rebase * Update readme * Rename option to lookup-only * Update test name * Update package.json + changelog * Update README * Update custom package version * Update custom package version * Update @actions/cache to 3.2.0 * Code review * Update log statement * Move test case --------- Co-authored-by: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> * Change two new actions mention as quoted text * Add example for Bazel * Fix example for Bazel * Reduced download segment size to 128 MB and timeout to 10 minutes (actions#1129) * Changed segment size to 128mb & timeout to 10 min * Updated license * Updated licenses * Fixed readme with new segment timeout values (actions#1133) * Readme fixes (actions#1134) * Update README.md * Update README.md * Create separate Linux/macOS examples for Bazel * Updated description of the lookup-only input for main action (actions#1130) * Updated description of the lookup-only input for main action * Update README.md Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com> * Update README.md --------- Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com> * Clarify that macos-latest image has bazelisk * Remove actions to add new PRs and issues to a project board The project doesn't seem to exist, so this always fails. * Consume latest toolkit and fix dangling promise bug (actions#1217) * Consume latest toolkit and fix dangling promise bug * Pass earlyExit parameter to run method so tests don't hang * Pass earlyExit parameter to run method so tests don't hang * Refactor restore files to have better patterns for testing * style * bump action version to 3.3.2 * Add to RELEASES.md * added save-always input * Update action.yml Co-authored-by: Tomasz Janiszewski <janiszt@gmail.com> * Revert "Update action.yml" This reverts commit 3b7dac1. * Update action to node20 * Update check-dist node version * Rebuild dist * Update license * replace deprecated @zeit/ncc with @vercel/ncc * Bump version * Update "only-" actions to node20 * Apply workaround for earlyExit * Fix format * cache v3.3.3 * licensed * Fix dist * Update README.md * Update examples * update documentation to use <action>@v4 * add release action * update @actions/cache * licensed cache * Fix fail-on-cache-miss not working * Bump version * Add test case for process exit Co-authored-by: Bethany <bethanyj28@users.noreply.github.com> * Update README.md and use v4 of checkout action (actions#1437) Update examples to use latest available checkout action v4. * Explicit use bash for Windows (actions#1377) Co-authored-by: Josh Gross <joshmgross@github.com> * Fix cache-hit output when cache missed (actions#1404) * fix: cache-hit output * fix: Output chache hit timing * fix: Output chache hit timing --------- Co-authored-by: Josh Gross <joshmgross@github.com> * Clarify that the `restore-keys` input is a string in the docs (actions#1434) * Fix Description for restore-keys at Readme As previously the restore-keys were defined as an ordered lists which is wrong as per the issue description where the actual format is a multi-line string with one key per line. * Added a space between the sentence of restore-keys description While at the PR review it's been identified there's a need for a space between the sentence ``` An ordered multiline string listing the prefix-matched keys,that are used for restoring stale cache if no cache hit occurred for key. ``` where it's written as "prefix-matched keys,that are" this commit will address the review comment and introduce a space between "prefix-matched keys, that are" and change the sentence to ``` An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. ``` * Change restore-keys description at cache/restore/action.yml and cache/action.yml * Add workflow file for publishing releases to immutable action package This workflow file publishes new action releases to the immutable action package of the same name as this repo. This is part of the Immutable Actions project which is not yet fully released to the public. First party actions like this one are part of our initial testing of this feature. * Deprecate `save-always` input (actions#1452) The `save-always` input added in v4 is not working as intended due to `post-if` expressions not supporting the input context. To avoid breaking users who have already added this input to their workflows, it is being deprecated now and will be removed in the next major version (v5). See actions#1315 for more details. * Fix typo: depening -> depending (actions#1462) Co-authored-by: Josh Gross <joshmgross@github.com> * restore action's README now references v4 instead of v3 (actions#1445) Co-authored-by: Josh Gross <joshmgross@github.com> * Prepare `4.1.0` release (actions#1464) * Restore original behavior of `cache-hit` output (actions#1467) * Restore original behavior of `cache-hit` output * Bump version to 4.1.1 * Add Bun example (actions#1456) * Add Bun example * Fix Bun Windows example * Revise `isGhes` logic * ran `npm run build` * appease the linter * added unit tests * Bump braces from 3.0.2 to 3.0.3 Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](micromatch/braces@3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Create dependabot.yml * Prepare release 4.1.2 * Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/stale from 3 to 9 Bumps [actions/stale](https://github.com/actions/stale) from 3 to 9. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](actions/stale@v3...v9) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 3 to 4 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump github/codeql-action from 2 to 3 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade @actions/cache to 4.0.0 * Update RELEASES.md * Upgrade @vercel/ncc to 0.38.3 * Upgrade @actions/core to 1.11.1 and other deps * Add licensed output * Add reviewed licensed packages * Add lodash to list of reviewed licenses * Add licensed output * Rerun CI * Add 3.4.0 release notes * Correct GitHub Spelling in caching-strategies.md (actions#1526) GitHub was spelled incorrectly 3 lines under the Understanding how to choose path section * docs: Make the "always save prime numbers" example more clear (actions#1525) * Update force deletion docs due a recent deprecation (actions#1500) * fix: update force deletion docs due a recent deprecation * fix: applied josh's suggestions --------- Co-authored-by: Josh Gross <joshmgross@github.com> * bump @actions/cache to v4.0.1 * Update publish-immutable-actions.yml * bump @actions/cache to v4.0.2, prep for v4.2.2 release * add changes * changed * mask whole url * debugging * type * artifact changes * update cache package to mask whole sas to the end of the line * mask * update * latest test before pr * updated cache with latest changes * updates * new package * update cache with main * Update to use the latest version of the cache package to obfuscate the SAS * Update releases.md * Update README.md * update to node24 * update licences * @protobuf-ts/plugin to dev dependencies * Add licensed output * Add licensed output * Update the licensed workflow to use the latest version * Fix the workflow to use licensed from source * Fix bundle exec * Fix with another approach * Prepare release 4.2.4 * Add note on runner versions * license and compiled * Approve license * Upgrade actions/cache to 4.1.0 and prepare 4.3.0 release * Update licensed cache * Update cache to use local cache package and Node 24 support - Use local cache package with file:../packages/cache instead of published version - Update all action.yml files to use node24 runtime - Update dependencies to support Node 24 (@types/node@24.1.0) - Rebuild dist files with local cache package - Add engines field requiring node >=24 * Build dist files for Node 24 * chore: rebuild dist with local @actions/cache (core v2, exec v2) * chore: use local @actions/core, exec, io packages * Build with @actions/cache v5.0.0 * Use published @actions/core, exec, io v2.0.0 * chore: rebuild with @actions/cache v5.0.0 Uses updated cache package that removes @azure/ms-rest-js dependency to fix Node 24 punycode deprecation warning. * Update with core 2.0.1 which has exec 2.0.0 * chore: update @actions/core to 2.0.1 * Latest dist with core changes * Extra dist change * chore: use published @actions/cache v5.0.0 * chore: update license cache for @actions/cache v5.0.0 * chore: rebuild dist with @actions/cache v5.0.0 * chore: update actions/checkout to v5 in workflow files * chore: bump version to 5.0.0 for Node.js 24 support * docs: update README with v5 release notes * Revert "docs: update README with v5 release notes" This reverts commit fe92eaf. * chore: revert README to main branch state * chore: set version to 4.3.0 for prepare release PR * chore: rebuild dist with version 4.3.0 * chore: regenerate package-lock.json * undo readme changes * Prepare v5.0.0 release - Bump package version to 5.0.0 - Add v5.0.0 release notes (Node.js 24 runtime + runner requirement) * docs: update README for v5 release with Node 24 and runner version requirements * readme note * docs: highlight v5 runner requirement in releases * fix: update @actions/cache with storage-blob fix for Node.js 24 punycode deprecation * peer * fix: update @actions/cache to ^5.0.1 for Node.js 24 punycode fix Updates @actions/cache to version 5.0.1 which includes the @azure/storage-blob update that fixes the punycode deprecation warning on Node.js 24. * fix: update license files for @actions/cache, fast-xml-parser, and strnum * fix: add peer property to package-lock.json for dependencies * chore: release v5.0.1 - Bump version to 5.0.1 - Fix Node.js 24 punycode deprecation warning via @actions/cache@5.0.1 - Updates @azure/storage-blob to ^12.29.1 Related: actions#1685 * docs: Update examples to cache@v5 * docs: Update other actions in examples to the latest version * Bump actions/cache to 5.0.3 * Add PR link to releases * Build * Update licensed record for cache * license for httpclient * Add 5.0.3 builds * Upgrade dependencies and address security warnings - Bump `@actions/cache` to v5.0.5 - Bump `@actions/core` to v2.0.3 * Add licensed output * Add review for the @actions/http-client license * Update contribution docs * Add note * Potential fix for code scanning alert no. 52: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Fix permissions for workflows/workflow.yml * Fix workflow permissions and cleanup * Cleanup workflow file names * Update .github/workflows/pr-opened-workflow.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Rewrite and simplify * Add wait for proxy * Fix resolution * Add traffic sanity check step * Fix cache key in examples.md for bun.lock Updated cache key to use 'bun.lock' instead of 'bun.lockb' for consistency. * Update dependencies & patch security vulnerabilities * Add licenses * Update RELEASES * Update ts-http-runtime to 0.3.5 * npm run build generated dist files * licensed changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Lovepreet Singh <pdotl@github.com> Co-authored-by: Kotokaze <62094392+kotokaze@users.noreply.github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com> Co-authored-by: David Bernard <davidB@users.noreply.github.com> Co-authored-by: Michael Vorburger <vorburger@google.com> Co-authored-by: Michael Vorburger ⛑️ <mike@vorburger.ch> Co-authored-by: Vipul <vsvipul@github.com> Co-authored-by: Jason Orendorff <jorendorff@github.com> Co-authored-by: Johanan Idicula <jidicula@github.com> Co-authored-by: Chad Kimes <1936066+chkimes@users.noreply.github.com> Co-authored-by: bethanyj28 <bethanyj28@github.com> Co-authored-by: Bethany <bethanyj28@users.noreply.github.com> Co-authored-by: to-s <26573402+to-s@users.noreply.github.com> Co-authored-by: Tomasz Janiszewski <janiszt@gmail.com> Co-authored-by: to-s <to-s@users.noreply.github.com> Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Co-authored-by: Rob Herley <robherley@github.com> Co-authored-by: Yang Cao <yacaovsnc@github.com> Co-authored-by: todgru <todgru@gmail.com> Co-authored-by: P. Ottlinger <ottlinger@users.noreply.github.com> Co-authored-by: Oleg A. <t0rr@mail.ru> Co-authored-by: Josh Gross <joshmgross@github.com> Co-authored-by: r4mimu <52129983+fchimpan@users.noreply.github.com> Co-authored-by: Soubhik Kumar Mitra <59209034+x612skm@users.noreply.github.com> Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Co-authored-by: Joel Ambass <Jcambass@users.noreply.github.com> Co-authored-by: mackey0225 <masaki.asano0225@gmail.com> Co-authored-by: Eman Resu <78693624+quatquatt@users.noreply.github.com> Co-authored-by: Jan T. Sott <git@idleberg.com> Co-authored-by: John Wesley Walker III <81404201+jww3@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: janco-absa <janco.bester@absa.africa> Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com> Co-authored-by: Alessandro Sebastiani <sebbalex@users.noreply.github.com> Co-authored-by: Salman Chishti <salmanmkc@GitHub.com> Co-authored-by: Ben De St Paer-Gotch <nebuk89@github.com> Co-authored-by: Ryan Ghadimi <114221941+GhadimiR@users.noreply.github.com> Co-authored-by: XZTDean <xztdean@gmail.com> Co-authored-by: Ryan Ghadimi <ghadimir@github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ryan Peck <1244954+RyPeck@users.noreply.github.com>
1 parent b13b69d commit 5293c36

113 files changed

Lines changed: 354350 additions & 118068 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.devcontainer/devcontainer.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Node.js & TypeScript",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:16-bullseye",
4+
// Features to add to the dev container. More info: https://containers.dev/implementors/features.
5+
// "features": {},
6+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
7+
// "forwardPorts": [],
8+
// Use 'postCreateCommand' to run commands after the container is created.
9+
"postCreateCommand": "npm install"
10+
// Configure tool-specific properties.
11+
// "customizations": {},
12+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
13+
// "remoteUser": "root"
14+
}

‎.github/dependabot.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
groups:
13+
minor-actions-dependencies:
14+
update-types: [minor, patch]
15+
16+
- package-ecosystem: "npm"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
allow:
21+
- dependency-type: direct
22+
- dependency-type: production

‎.github/pull_request_template.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
<!--- Describe your changes in detail -->
5+
6+
## Motivation and Context
7+
<!--- Why is this change required? What problem does it solve? -->
8+
<!--- If it fixes an open issue, please link to the issue here. -->
9+
10+
## How Has This Been Tested?
11+
<!--- Please describe in detail how you tested your changes. -->
12+
<!--- Include details of your testing environment, and the tests you ran to -->
13+
<!--- see how your change affects other areas of the code, etc. -->
14+
15+
## Screenshots (if appropriate):
16+
17+
## Types of changes
18+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
19+
- [ ] Bug fix (non-breaking change which fixes an issue)
20+
- [ ] New feature (non-breaking change which adds functionality)
21+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
22+
- [ ] Documentation (add or update README or docs)
23+
24+
## Checklist:
25+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
26+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
27+
- [ ] My code follows the code style of this project.
28+
- [ ] My change requires a change to the documentation.
29+
- [ ] I have updated the documentation accordingly.
30+
- [ ] I have read the **CONTRIBUTING** document.
31+
- [ ] I have added tests to cover my changes.
32+
- [ ] All new and existing tests passed.

‎.github/workflows/check-dist.yml‎

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# `dist/index.js` is a special file in Actions.
2-
# When you reference an action with `uses:` in a workflow,
3-
# `index.js` is the code that will run.
4-
# For our project, we generate this file through a build process
5-
# from other source files.
6-
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
7-
name: Check dist/
1+
name: Check dist content
82

93
on:
104
push:
@@ -17,36 +11,12 @@ on:
1711
- '**.md'
1812
workflow_dispatch:
1913

20-
jobs:
21-
check-dist:
22-
runs-on: ubuntu-latest
23-
24-
steps:
25-
- uses: actions/checkout@v2
26-
27-
- name: Set Node.js 12.x
28-
uses: actions/setup-node@v1
29-
with:
30-
node-version: 12.x
31-
32-
- name: Install dependencies
33-
run: npm ci
14+
permissions:
15+
contents: read
3416

35-
- name: Rebuild the dist/ directory
36-
run: npm run build
37-
38-
- name: Compare the expected and actual dist/ directories
39-
run: |
40-
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
41-
echo "Detected uncommitted changes after build. See status below:"
42-
git diff
43-
exit 1
44-
fi
45-
id: diff
46-
47-
# If index.js was different than expected, upload the expected version as an artifact
48-
- uses: actions/upload-artifact@v2
49-
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
50-
with:
51-
name: dist
52-
path: dist/
17+
jobs:
18+
call-check-dist:
19+
name: Check dist/
20+
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
21+
with:
22+
node-version: "24.x"

‎.github/workflows/close-inactive-issues.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Close inactive issues
2+
23
on:
34
schedule:
45
- cron: "30 8 * * *"
@@ -10,12 +11,12 @@ jobs:
1011
issues: write
1112
pull-requests: write
1213
steps:
13-
- uses: actions/stale@v3
14+
- uses: actions/stale@v9
1415
with:
15-
days-before-issue-stale: 365
16+
days-before-issue-stale: 200
1617
days-before-issue-close: 5
1718
stale-issue-label: "stale"
18-
stale-issue-message: "This issue is stale because it has been open for 365 days with no activity. Leave a comment to avoid closing this issue in 5 days."
19+
stale-issue-message: "This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days."
1920
close-issue-message: "This issue was closed because it has been inactive for 5 days since being marked as stale."
2021
days-before-pr-stale: -1
2122
days-before-pr-close: -1

‎.github/workflows/codeql.yml‎

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,45 @@
1-
name: "Code scanning - action"
1+
name: Code scanning
22

33
on:
44
push:
55
pull_request:
66
schedule:
77
- cron: '0 19 * * 0'
88

9+
permissions:
10+
contents: read
11+
security-events: write
12+
913
jobs:
1014
CodeQL-Build:
11-
12-
# CodeQL runs on ubuntu-latest and windows-latest
15+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1316
runs-on: ubuntu-latest
14-
1517
steps:
1618
- name: Checkout repository
17-
uses: actions/checkout@v2
18-
with:
19-
# We must fetch at least the immediate parents so that if this is
20-
# a pull request then we can checkout the head.
21-
fetch-depth: 2
22-
23-
# If this run was triggered by a pull request event, then checkout
24-
# the head of the pull request instead of the merge commit.
25-
- run: git checkout HEAD^2
26-
if: ${{ github.event_name == 'pull_request' }}
27-
19+
uses: actions/checkout@v5
20+
2821
# Initializes the CodeQL tools for scanning.
2922
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v1
23+
uses: github/codeql-action/init@v3
3124
# Override language selection by uncommenting this and choosing your languages
3225
# with:
33-
# languages: go, javascript, csharp, python, cpp, java
26+
# languages: go, javascript, csharp, python, cpp, java, ruby
3427

35-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
36-
# If this step fails, then you should remove it and run the build manually (see below)
28+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
29+
# If this step fails, then you should remove it and run the build manually (see below).
3730
- name: Autobuild
38-
uses: github/codeql-action/autobuild@v1
31+
uses: github/codeql-action/autobuild@v3
3932

4033
# ℹ️ Command-line programs to run using the OS shell.
41-
# 📚 https://git.io/JvXDl
34+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
4235

43-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
44-
# and modify them (or add more) to build your code if your project
45-
# uses a compiled language
36+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
37+
# three lines and modify them (or add more) to build your code if your
38+
# project uses a compiled language
4639

4740
#- run: |
48-
# make bootstrap
49-
# make release
41+
# make bootstrap
42+
# make release
5043

5144
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v1
45+
uses: github/codeql-action/analyze@v3
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Assign issue
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
run-action:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Get current oncall
15+
id: oncall
16+
run: |
17+
echo "CURRENT=$(curl --request GET 'https://api.pagerduty.com/oncalls?include[]=users&schedule_ids[]=P5VG2BX&earliest=true' --header 'Authorization: Token token=${{ secrets.PAGERDUTY_TOKEN }}' --header 'Accept: application/vnd.pagerduty+json;version=2' --header 'Content-Type: application/json' | jq -r '.oncalls[].user.name')" >> $GITHUB_OUTPUT
18+
19+
- name: add_assignees
20+
run: |
21+
curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.issue.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}'

‎.github/workflows/licensed.yml‎

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Licensed
1+
name: License check
22

33
on:
44
push:
@@ -7,18 +7,37 @@ on:
77
pull_request:
88
branches:
99
- main
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
1014

1115
jobs:
12-
test:
16+
validate-cached-dependency-records:
1317
runs-on: ubuntu-latest
1418
name: Check licenses
1519
steps:
16-
- uses: actions/checkout@v2
17-
- run: npm ci
18-
- name: Install licensed
20+
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
24+
- name: Install dependencies
25+
run: npm ci --ignore-scripts
26+
27+
- name: Set up Ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: '3.1.7'
31+
32+
- name: Install licensed tool
33+
run: |
34+
cd "$RUNNER_TEMP"
35+
curl -Lfs -o licensed.tar.gz https://github.com/licensee/licensed/archive/refs/tags/v5.0.4.tar.gz
36+
tar -xzf licensed.tar.gz
37+
cd licensed-5.0.4
38+
bundle install
39+
40+
- name: Check cached dependency records
1941
run: |
20-
cd $RUNNER_TEMP
21-
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz
22-
sudo tar -xzf licensed.tar.gz
23-
sudo mv licensed /usr/local/bin/licensed
24-
- run: licensed status
42+
cd ${{ github.workspace }}
43+
BUNDLE_GEMFILE=$RUNNER_TEMP/licensed-5.0.4/Gemfile bundle exec $RUNNER_TEMP/licensed-5.0.4/exe/licensed status
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Assign pull request reviewer
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
run-action:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Get current oncall
15+
id: oncall
16+
run: |
17+
echo "CURRENT=$(curl --request GET 'https://api.pagerduty.com/oncalls?include[]=users&schedule_ids[]=P5VG2BX&earliest=true' --header 'Authorization: Token token=${{ secrets.PAGERDUTY_TOKEN }}' --header 'Accept: application/vnd.pagerduty+json;version=2' --header 'Content-Type: application/json' | jq -r '.oncalls[].user.name')" >> $GITHUB_OUTPUT
18+
19+
- name: Request Review
20+
run: |
21+
curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/pulls/${{ github.event.pull_request.number}}/requested_reviewers -d '{"reviewers":["${{steps.oncall.outputs.CURRENT}}"]}'
22+
23+
- name: Add Assignee
24+
run: |
25+
curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.pull_request.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}'
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish immutable action
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
permissions:
8+
contents: read
9+
id-token: write
10+
packages: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checking out
17+
uses: actions/checkout@v5
18+
- name: Publish
19+
id: publish
20+
uses: actions/publish-immutable-action@0.0.3

0 commit comments

Comments
 (0)