Skip to content
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

[pull] main from actions:main #5

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
adc04e7
chore: Add Dependabot for NPM and Actions
nschonni Jun 3, 2024
adfd270
Specify that the script is JavaScript
timotk Jul 10, 2024
c44be22
Upgrade husky to v9
benelan Jul 25, 2024
3c6a5c5
empty commit
benelan Jul 27, 2024
35b1cdd
Merge pull request #482 from benelan/main
joshmgross Jul 29, 2024
b9f8f75
Add workflow file for publishing releases to immutable action package
Jcambass Sep 13, 2024
58d7008
Merge pull request #485 from actions/Jcambass-patch-1
Jcambass Sep 13, 2024
c0ceea4
Upgrade IA Publish
Jcambass Sep 16, 2024
660ec11
Merge pull request #486 from actions/Jcambass-patch-1
Jcambass Sep 17, 2024
ec3a5c4
Fix workflow status badges
joshmgross Nov 1, 2024
4020e46
Merge pull request #497 from actions/joshmgross/fix-status-badges
joshmgross Nov 4, 2024
a32a57a
Update usage of `actions/upload-artifact`
joshmgross Jan 16, 2025
2bcb242
Merge pull request #512 from actions/joshmgross/upload-artifact-update
joshmgross Jan 17, 2025
7875aed
Clear up package name confusion
joshmgross Jan 17, 2025
2f5a0ce
Update integration test for expected package name
joshmgross Jan 17, 2025
5e738b4
Update dependencies with `npm audit fix`
joshmgross Jan 17, 2025
766f5dd
Update licenses
joshmgross Jan 17, 2025
c6fc059
Merge pull request #514 from actions/joshmgross/update-package-name
joshmgross Jan 17, 2025
1acfa1c
Merge branch 'main' into joshmgross/npm-audit-fix
joshmgross Jan 17, 2025
ac45280
Merge pull request #515 from actions/joshmgross/npm-audit-fix
joshmgross Jan 17, 2025
ec12a47
Merge branch 'main' into patch-1
joshmgross Jan 17, 2025
d705669
Merge pull request #478 from timotk/patch-1
joshmgross Jan 17, 2025
f2f7f58
ci: Use github/setup-licensed
nschonni Jun 3, 2024
fd2cfc1
ci: pin ruby/setup-ruby
nschonni Jun 10, 2024
3e8cf0f
Merge branch 'main' into setup-dependabot
joshmgross Jan 28, 2025
c94e1c4
Merge pull request #472 from nschonni/setup-dependabot
joshmgross Jan 28, 2025
19e58d8
Define `permissions` in workflows and update actions
joshmgross Jan 28, 2025
8e643f1
chore: Add Dependabot for .github/actions/install-dependencies
nschonni Jan 28, 2025
ac230a1
chore: Remove .vscode settings
nschonni Jan 28, 2025
08caadd
Merge pull request #531 from actions/joshmgross/update-workflows
joshmgross Jan 29, 2025
6efc757
Merge branch 'main' into sub-action-dependabot
joshmgross Jan 29, 2025
eef4fd9
Merge branch 'main' into remove-vscode
joshmgross Jan 29, 2025
eb88965
Merge pull request #532 from nschonni/sub-action-dependabot
joshmgross Jan 29, 2025
511abaa
Merge branch 'main' into remove-vscode
joshmgross Jan 29, 2025
8cf50d1
Merge pull request #533 from nschonni/remove-vscode
joshmgross Jan 29, 2025
586a6a1
Merge branch 'main' into upstream-setup-license
joshmgross Jan 29, 2025
91a83c0
Merge pull request #473 from nschonni/upstream-setup-license
joshmgross Jan 29, 2025
4024541
make octokit instance available as octokit on top of github, to make …
iamstarkov Jan 15, 2025
f23cd47
replace GitHub with octokit in the README, but keep a note of the Git…
iamstarkov Jan 31, 2025
6320504
fix: adjust types
iamstarkov Jan 31, 2025
378a50f
Merge pull request #508 from iamstarkov/patch-2
joshmgross Feb 4, 2025
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
2 changes: 1 addition & 1 deletion .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Set up node and install dependencies'
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: npm
Expand Down
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'

- package-ecosystem: 'github-actions'
directory: '/.github/actions/install-dependencies'
schedule:
interval: 'weekly'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
7 changes: 5 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ on:
pull_request:
workflow_dispatch:

permissions:
contents: read

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

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

- uses: ./.github/actions/install-dependencies

Expand All @@ -35,7 +38,7 @@ jobs:
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- run: npm run style:check
- run: npm test
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -56,7 +56,7 @@ jobs:
# 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@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ 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
Expand All @@ -69,4 +69,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
19 changes: 11 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
test-return:
name: 'Integration test: return'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: output-set
uses: ./
with:
Expand All @@ -31,15 +34,15 @@ jobs:
name: 'Integration test: relative-path require'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: relative-require
uses: ./
with:
script: return require('./package.json').name
result-encoding: string
- run: |
echo "- Validating relative require output"
if [[ "${{steps.relative-require.outputs.result}}" != "github-script" ]]; then
if [[ "${{steps.relative-require.outputs.result}}" != "@actions/github-script" ]]; then
echo $'::error::\u274C' "Expected '$expected', got ${{steps.relative-require.outputs.result}}"
exit 1
fi
Expand All @@ -49,7 +52,7 @@ jobs:
name: 'Integration test: npm package require'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- id: npm-require
uses: ./
Expand All @@ -69,7 +72,7 @@ jobs:
name: 'Integration test: GraphQL previews option'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- id: previews-default
name: Default previews not set
Expand Down Expand Up @@ -122,7 +125,7 @@ jobs:
name: 'Integration test: user-agent option'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- id: user-agent-default
name: Default user-agent not set
Expand Down Expand Up @@ -179,7 +182,7 @@ jobs:
name: "Integration test: debug option (runner.debug mode ${{ matrix.environment && 'enabled' || 'disabled' }})"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- id: debug-default
name: Default debug not set
Expand Down Expand Up @@ -253,7 +256,7 @@ jobs:
name: 'Integration test: base-url option'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies

- id: base-url-default
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/licensed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@ on:
branches:
- main

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # prefer to use a full fetch for licensed workflows
# https://github.com/jonabc/setup-licensed/releases/tag/v1.1.1
- uses: jonabc/setup-licensed@82c5f4d19e8968efa74a25b132922382c2671fe2
- uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0
with:
ruby-version: ruby
- uses: github/setup-licensed@v1
with:
version: '3.x'
version: '4.x'
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/install-dependencies
- run: licensed status
20 changes: 20 additions & 0 deletions .github/workflows/publish-immutable-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Publish Immutable Action Version'

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write

steps:
- name: Checking out
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/[email protected]
12 changes: 8 additions & 4 deletions .github/workflows/pull-request-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
branches: [main]
types: [opened, synchronize]

permissions:
contents: read
pull-requests: write

jobs:
pull-request-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./
with:
script: |
Expand All @@ -20,9 +24,9 @@ jobs:
issue_number: context.payload.number,
})

// Find any comment already made by the bot.
const botComment = comments.find(comment => comment.user.id === 41898282)
const commentBody = "Hello from actions/github-script! (${{ github.sha }})"
// Find any comment already made by the bot.
const botComment = comments.find(comment => comment.user.id === 41898282)
const commentBody = "Hello from actions/github-script! (${{ github.sha }})"

if (context.payload.pull_request.head.repo.full_name !== 'actions/github-script') {
console.log('Not attempting to write comment on PR from fork');
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/stale.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/node_modules/
!/.vscode/
/node_modules/
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit && git add dist/
2 changes: 1 addition & 1 deletion .licenses/npm/undici.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions .vscode/settings.json

This file was deleted.

Loading