Socket
Socket
Sign inDemoInstall

@octokit/action

Package Overview
Dependencies
Maintainers
3
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/action - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

dist-node/index.js

@@ -10,3 +10,3 @@ 'use strict';

const VERSION = "1.2.1";
const VERSION = "1.3.0";

@@ -13,0 +13,0 @@ const Octokit = core.Octokit.plugin([pluginPaginateRest.paginateRest, pluginRestEndpointMethods.restEndpointMethods]).defaults({

@@ -1,1 +0,1 @@

export const VERSION = "1.2.1";
export const VERSION = "1.3.0";

@@ -1,1 +0,1 @@

export declare const VERSION = "1.2.1";
export declare const VERSION = "1.3.0";
{
"name": "@octokit/action",
"description": "GitHub API client for GitHub Actions",
"version": "1.2.1",
"version": "1.3.0",
"license": "MIT",

@@ -21,3 +21,3 @@ "files": [

"dependencies": {
"@octokit/auth-action": "^1.1.1",
"@octokit/auth-action": "^1.2.0",
"@octokit/core": "^2.1.1",

@@ -35,3 +35,3 @@ "@octokit/plugin-paginate-rest": "^2.0.1",

"fetch-mock": "^8.0.0",
"jest": "^24.9.0",
"jest": "^25.1.0",
"prettier": "^1.18.2",

@@ -38,0 +38,0 @@ "semantic-release": "^17.0.2",

@@ -35,2 +35,34 @@ # action.js

You can pass `secret.GITHUB_TOKEN` or any of your own secrets to a Node.js script. For example
```yml
name: My Node Action
on:
- pull_request
jobs:
my-action:
runs-on: ubuntu-latest
steps:
# Check out code using git
- uses: actions/checkout@v2
# Install Node 12
- uses: actions/setup-node@v1
with:
version: 12
# Node.js script can be anywhere. A good convention is to put local GitHub Actions
# into the `.github/actions` folder
- run: node .github/actions/my-script.js
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Setting `GITHUB_TOKEN` on either [`with:`](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepswith) or [`env:`](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#env) will work.
```js
// .github/actions/my-script.js
const octokit = new Octokit();
// `octokit` is now authenticated using GITHUB_TOKEN
```
### Create an issue using REST API

@@ -37,0 +69,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc