Skip to content
Open

I #720

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
6fc84b1
Merge pull request #257 from actions/upgrade-dependencies
gimenete Oct 15, 2021
cd62eed
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Oct 15, 2021
37da8e8
Merge pull request #241 from actions/dependabot/npm_and_yarn/path-par…
gimenete Nov 10, 2021
ecd66f1
add issue templates
robherley Nov 22, 2021
ee82d6a
Merge pull request #269 from actions/robherley/update-issue-templates
robherley Nov 22, 2021
f061e61
rm dupe security vulnerability from issue template
robherley Nov 23, 2021
54f3f7f
Merge pull request #271 from actions/robherley/dupe-issue-template
robherley Nov 23, 2021
0b3de3e
Fix `README.md` links and some formatting updates (#273)
magnetikonline Dec 1, 2021
b9bb657
Bump tmpl from 1.0.4 to 1.0.5 (#250)
dependabot[bot] Dec 1, 2021
a009a66
Create release-new-action-version.yml (#277)
konradpabjan Dec 2, 2021
5f375cc
Document how to correctly use environment variables for path input (#…
konradpabjan Dec 6, 2021
f4ac36d
Improve readme (#278)
jozefizso Dec 7, 2021
da838ae
Bump @actions/artifact to version 0.6.0 (#280)
konradpabjan Dec 7, 2021
82c141c
Bump @actions/artifact to version 0.6.1 (#286)
konradpabjan Dec 15, 2021
87348ce
Add 503 warning when uploading to the same artifact
konradpabjan Jan 20, 2022
2244c82
Update to node16 (#293)
thboop Feb 7, 2022
6673cd0
Update `lockfileVersion` in `package-lock.json` (#302)
jtamsut Mar 3, 2022
f29a5d0
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 26, 2022
0e2226c
Merge pull request #311 from actions/dependabot/npm_and_yarn/minimist…
yacaovsnc Apr 25, 2022
2aeee26
Bump yargs-parser from 13.1.1 to 13.1.2
dependabot[bot] Apr 25, 2022
6ed6c72
Merge pull request #303 from actions/dependabot/npm_and_yarn/yargs-pa…
yacaovsnc Apr 25, 2022
c26a7ba
Bump ajv from 6.11.0 to 6.12.6
dependabot[bot] Apr 25, 2022
d159c2d
Merge pull request #297 from actions/dependabot/npm_and_yarn/ajv-6.12.6
yacaovsnc Apr 25, 2022
189315d
Bump ansi-regex from 4.1.0 to 4.1.1
dependabot[bot] Apr 25, 2022
09a5d6a
Merge pull request #320 from actions/dependabot/npm_and_yarn/ansi-reg…
yacaovsnc Apr 25, 2022
2e0d362
bump @actions/artifact to 1.1.0
robherley May 19, 2022
4d39869
recompile with correct ncc version
robherley May 19, 2022
849aa77
nvm use 12 & npm run release
robherley May 19, 2022
3cea537
Merge pull request #327 from actions/robherley/artifact-1.1.0
robherley May 20, 2022
83fd05a
Bump actions-core to v1.10.0 (#356)
konradpabjan Oct 21, 2022
7fe6c13
Update to latest `actions/publish-action` (#363)
JamesMGreene Jan 4, 2023
e0057a5
README: Bump actions/checkout to v3 (#352)
gmelikov Jan 4, 2023
7a5d483
ci(github): update action/checkout from v2 to v3 (#315)
ljmf00 Jan 4, 2023
055b8b3
Bump Actions NPM dependencies (#374)
konradpabjan Jan 4, 2023
013d2b8
Create devcontainer for codespaces + update all dev dependencies (#375)
konradpabjan Jan 5, 2023
0b7f8ab
ci(github): update action/download-artifact from v1 to v3 (#312)
ljmf00 Jan 5, 2023
65d8626
chore(github): remove trailing whitespaces (#313)
ljmf00 Jan 6, 2023
99700c1
Update upload-artifact for @actions/artifact@v2
bethanyj28 Aug 24, 2023
0f57369
bump @actions/artifact to 2.0.0
bethanyj28 Aug 24, 2023
0597a56
update dist
bethanyj28 Aug 24, 2023
0ff37d0
Merge pull request #430 from bethanyj28/main
bethanyj28 Aug 24, 2023
55e76b7
bump @actions/artifact version
bethanyj28 Sep 6, 2023
6663039
update dist/index.js
bethanyj28 Sep 6, 2023
7b48769
update dependency cache
bethanyj28 Sep 6, 2023
a8a3f3a
Merge pull request #436 from bethanyj28/main
bethanyj28 Sep 6, 2023
50ad273
bump linked artifact toolkit pkg
robherley Oct 16, 2023
f87a408
Merge pull request #446 from robherley/v4-beta
robherley Oct 16, 2023
aa5cae1
Add artifact-id output to v4-beta (#448)
konradpabjan Oct 26, 2023
20bcd3b
add compression level input
robherley Nov 20, 2023
59ef34a
bump for more logs
robherley Nov 20, 2023
fa39c94
consume latest @actions/artifact from toolkit
robherley Nov 21, 2023
eeb333d
Merge pull request #453 from actions/robherley/more-v4-improvements
robherley Nov 21, 2023
83b889d
consume latest @actions/artifact
robherley Dec 4, 2023
500e175
Merge pull request #460 from actions/robherley/consume-latest-toolkit
robherley Dec 4, 2023
eba2a24
consume latest @actions/toolkit (#461)
robherley Dec 7, 2023
9a179cd
adding error message improvement
vmjoseph Dec 11, 2023
2a6c27a
Merge pull request #464 from actions/vmjoseph/v4-beta-more-descriptiv…
vmjoseph Dec 11, 2023
6a5077f
update docs and bump @actions/artifact
robherley Dec 13, 2023
1b56155
s/v4-beta/v4/g
robherley Dec 13, 2023
d6437d0
naming
robherley Dec 13, 2023
5e7604f
trim some repeated info
robherley Dec 13, 2023
ecb2146
add compression example
robherley Dec 13, 2023
875b630
add limitations section
robherley Dec 13, 2023
9653d03
Apply suggestions from code review
robherley Dec 13, 2023
f391bb9
Merge pull request #465 from actions/robherley/v4-documentation
robherley Dec 13, 2023
4a6c273
Merge branch 'main' into v4-beta
robherley Dec 13, 2023
13131bb
licensed cache
robherley Dec 13, 2023
c7d193f
Merge pull request #466 from actions/v4-beta
robherley Dec 14, 2023
6c139af
update imports and old v4-beta references
robherley Dec 14, 2023
3530730
Merge pull request #468 from actions/robherley/misc-updates
robherley Dec 14, 2023
7f16e37
add migrations docs
robherley Dec 18, 2023
cf8714c
Merge pull request #482 from actions/robherley/add-migration-docs
robherley Dec 18, 2023
cad5e17
Create npm-grunt.yml
srbaeza-ai May 9, 2024
b3dc483
Bump undici in the npm_and_yarn group across 1 directory
dependabot[bot] Jul 9, 2024
201b341
Create codeql.yml
srbaeza-ai Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "@actions/upload-artifact",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-16"
}
5 changes: 1 addition & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
"parserOptions": { "ecmaVersion": 9, "sourceType": "module" },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/no-empty-function": "off"
Expand Down
63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "🐛 Bug report"
description: Let us know about a bug!
labels: ['bug']
title: '[bug]'
body:
- type: textarea
id: problem
attributes:
label: What happened?
description: |
Please provide a clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem.
validations:
required: true

- type: textarea
id: expected
attributes:
label: What did you expect to happen?
validations:
required: true

- type: textarea
id: repro
attributes:
label: How can we reproduce it?
description: |
Please be minimal and precise as possible. If your repo/run is public, please include a URL so it is easier for us to investigate.
validations:
required: true

- type: textarea
id: additional
attributes:
label: Anything else we need to know?

- type: input
id: version
attributes:
label: What version of the action are you using?
placeholder: vX.Y.Z
description: |
Please check the documentation first since different major versions can have different behaviors.
validations:
required: true

- type: dropdown
id: environment
attributes:
label: What are your runner environments?
multiple: true
options:
- self-hosted
- linux
- window
- macos
validations:
required: true

- type: input
id: ghes
attributes:
label: Are you on GitHub Enterprise Server? If so, what version?
placeholder: vX.Y
33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 🙋 Ask a question
url: https://github.community/c/code-to-cloud/52
about: Please ask and answer questions on GitHub Support Community.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "📚 Documentation issues"
description: Make a suggestion to improve the documentation!
labels: ['documentation']
title: '[docs]'
body:
- type: markdown
attributes:
value: |
❗ This is only for documentation updates for files in this repo, ie: `README.md`.
If you want to suggest changes for the [GitHub Docs](https://docs.github.com/), please [open an issue there](https://github.com/github/docs/issues/new/choose).
- type: textarea
id: affected
attributes:
label: What files would you like to change?
description: |
Please provide permalinks to the specified files and line numbers.
validations:
required: true

- type: textarea
id: suggested
attributes:
label: What are your suggested changes?
description: |
Give as much detail as you can to help us understand the changes you want to see.
validations:
required: true
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "🎁 Feature request"
description: Suggest a new feature/enhancement!
labels: ['enhancement']
title: '[feat req]'
body:
- type: textarea
id: feature
attributes:
label: What would you like to be added?
description: |
Please check existing issues to avoid making duplicates. Any duplicate issue will be closed immediately.
validations:
required: true

- type: textarea
id: reasoning
attributes:
label: Why is this needed?
validations:
required: true
37 changes: 21 additions & 16 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,44 @@ on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
workflow_dispatch:

jobs:
check-dist:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set Node.js 12.x
uses: actions/setup-node@v1
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 20.x
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Move the committed index.js file
run: mv dist/index.js /tmp

- name: Rebuild the index.js file
run: npm run release
- name: Rebuild the dist/ directory
run: npm run build

- name: Compare the expected and actual index.js files
run: git diff --ignore-all-space dist/index.js /tmp/index.js
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: index.js
path: dist/index.js
name: dist
path: dist/
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -43,4 +43,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
92 changes: 92 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Advanced"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '35 10 * * 6'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/licensed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: npm ci
- name: Install licensed
run: |
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/npm-grunt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: NodeJS with Grunt

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
grunt
Loading