Skip to content

Commit 119b0f6

Browse files
authored
Upgrade actions dependencies (#13)
1 parent 1f3849f commit 119b0f6

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ New features:
1010

1111
Bugfixes:
1212

13+
- GitHub `@actions/*` dependencies upgraded for post-October 2020 compatibility. This affects the functionality of `addPath`, which is [formally deprecated](https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/) to avoid a security vulnerability. (#13 by @jisantuc)
14+
1315
Other improvements:
1416

1517
## [0.0.0] - 2020-01-01

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "eslint src && spago build --purs-args '--censor-lib --strict'",
4+
"build": "eslint src && spago build --purs-args '--censor-lib --strict --censor-codes=UserDefinedWarning'",
55
"test": "spago test --no-install"
66
},
77
"devDependencies": {
88
"@vercel/ncc": "^0.24.1",
99
"eslint": "^7.6.0"
1010
},
1111
"dependencies": {
12-
"@actions/cache": "^1.0.2",
13-
"@actions/core": "^1.2.5",
12+
"@actions/cache": "^1.0.6",
13+
"@actions/core": "^1.2.6",
1414
"@actions/exec": "^1.0.4",
1515
"@actions/io": "^1.0.2",
16-
"@actions/tool-cache": "^1.6.0"
16+
"@actions/tool-cache": "^1.6.1"
1717
}
1818
}

src/GitHub/Actions/Core.purs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module GitHub.Actions.Core
2323
) where
2424

2525
import Prelude
26-
2726
import Control.Monad.Error.Class (try)
2827
import Control.Monad.Except.Trans (ExceptT(..))
2928
import Control.Promise (Promise, fromAff, toAffE)
@@ -32,6 +31,7 @@ import Effect (Effect)
3231
import Effect.Aff (Aff)
3332
import Effect.Exception (Error)
3433
import Effect.Uncurried (EffectFn1, EffectFn2, runEffectFn1, runEffectFn2)
34+
import Prim.TypeError (class Warn, Text)
3535

3636
-- | Interface for getInput options
3737
-- | required: Whether the input is required. If required and not present, will throw
@@ -57,7 +57,9 @@ setSecret = runEffectFn1 setSecretImpl
5757
foreign import addPathImpl :: EffectFn1 String Unit
5858

5959
-- | Prepends input path to the PATH (for this action and future actions)
60-
addPath :: String -> Effect Unit
60+
addPath ::
61+
Warn (Text "addPath is deprecated due to a security vulnerability and will be removed in the next release.") =>
62+
String -> Effect Unit
6163
addPath = runEffectFn1 addPathImpl
6264

6365
foreign import getInput1Impl :: EffectFn1 String String

0 commit comments

Comments
 (0)