Skip to content

Commit 19c58b0

Browse files
committed
sast-scan.yml
1 parent 4b87e2e commit 19c58b0

File tree

13 files changed

+187
-176
lines changed

13 files changed

+187
-176
lines changed

.github/workflows/sast-scan.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: SAST Scan
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-sast:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Semgrep Scan
11+
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}:/src" returntocorp/semgrep semgrep scan --config auto

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
## Version 1.6.1
106106
###### Date: 08-May-2020
107107
### Bug
108-
- Stack api *** and access token moved to header
108+
- Stack api key and access token moved to header
109109
------------------------------------------------
110110

111111
## Version 1.6.0

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.",
44
"type": "library",
55
"license": "MIT",
6-
"***words": [
6+
"keywords": [
77
"Contentstack", "api"
88
],
99
"authors": [

composer.lock

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Contentstack.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ abstract class Contentstack
3636
/**
3737
* Static method for the Stack constructor
3838
*
39-
* @param string $api_*** : Contentstack Stack API KEY.
39+
* @param string $api_key : Contentstack Stack API KEY.
4040
* @param string $access_token : Contentstack Stack ACCESS TOKEN.
4141
* @param string $environment : Environment Name.
4242
* @param array $config : Stack Configuration to provide region.
@@ -45,12 +45,12 @@ abstract class Contentstack
4545
* @return Stack
4646
* */
4747

48-
public static function Stack($api_*** = '',
48+
public static function Stack($api_key = '',
4949
$access_token = '',
5050
$environment = '',
5151
$config = array('region'=> 'us', 'branch'=> '', 'live_preview' => array('enable' => false, 'host' => 'api.contentstack.io'))
5252
) {
53-
return new Stack($api_***, $access_token, $environment, $config);
53+
return new Stack($api_key, $access_token, $environment, $config);
5454
}
5555

5656
public static function renderContent(string $content, Option $option): string

src/Stack/BaseQuery.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function search($search = '')
218218
* $stack = Contentstack::Stack("API_KEY", "DELIVERY_TOKEN", "ENVIRONMENT");
219219
* $result = $stack->ContentType('product')->Query()->toJSON()->regex('color','^B1')->find();
220220
*
221-
* Now, in order to perform a case-insensitive search, you can use the $options *** to specify any regular expressions options:
221+
* Now, in order to perform a case-insensitive search, you can use the $options key to specify any regular expressions options:
222222
* use Contentstack\Contentstack;
223223
* $stack = Contentstack::Stack("API_KEY", "DELIVERY_TOKEN", "ENVIRONMENT");
224224
* $result = $stack->ContentType('product')->Query()->toJSON()->regex('color','^B1','i')->find();
@@ -617,8 +617,8 @@ public function includeOwner()
617617
/**
618618
* To add query parameter in query
619619
*
620-
* @param string $*** - Name of *** in string
621-
* @param string $value - Value of the *** in string
620+
* @param string $key - Name of key in string
621+
* @param string $value - Value of the key in string
622622
*
623623
* @example
624624
*
@@ -628,11 +628,11 @@ public function includeOwner()
628628
*
629629
* @return Query
630630
* */
631-
public function addParam($*** = '', $value = '')
631+
public function addParam($key = '', $value = '')
632632
{
633633
$this->queryObject->_query = call_user_func(
634634
'contentstackAddParam',
635-
$***,
635+
$key,
636636
$this->queryObject->_query,
637637
$value
638638
);
@@ -815,7 +815,7 @@ public function notContainedIn($field = '', $value = array())
815815
/**
816816
* Query the field which has exact value as specified
817817
*
818-
* @param string $*** - field in the entry against which
818+
* @param string $key - field in the entry against which
819819
* comparision needs to be done
820820
* @param string $value - value against which comparision is going to happen
821821
*
@@ -828,10 +828,10 @@ public function notContainedIn($field = '', $value = array())
828828
*
829829
* @return Query
830830
* */
831-
public function where($*** = '', $value = '')
831+
public function where($key = '', $value = '')
832832
{
833-
if (!Utility::isEmpty($***)) {
834-
$this->subQuery[$***] = $value;
833+
if (!Utility::isEmpty($key)) {
834+
$this->subQuery[$key] = $value;
835835
}
836836
return $this->queryObject;
837837
}

0 commit comments

Comments
 (0)