mirror of https://github.com/MISP/MISP
fix: gh action
parent
f134b9c719
commit
8f28679504
|
@ -33,6 +33,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
@ -53,6 +55,9 @@ jobs:
|
|||
- name: Populate database with initial schema
|
||||
run: mysql --defaults-file=misp.cnf -h 127.0.0.1 misp3_test < docker/db/misp-2.4.169.sql
|
||||
|
||||
- name: Debug DB
|
||||
run: mysql --defaults-file=misp.cnf -h 127.0.0.1 misp3_test -e "SHOW TABLES;"
|
||||
|
||||
- name: Install composer packages
|
||||
run: composer install --no-interaction --no-progress --no-suggest --ignore-platform-reqs
|
||||
|
||||
|
|
|
@ -16,57 +16,16 @@ $base = empty($temp['path']) ? false : $temp['path'];
|
|||
// end of block
|
||||
|
||||
return [
|
||||
/*
|
||||
* Debug Level:
|
||||
*
|
||||
* Production Mode:
|
||||
* false: No error messages, errors, or warnings shown.
|
||||
*
|
||||
* Development Mode:
|
||||
* true: Errors and warnings shown.
|
||||
*/
|
||||
'debug' => filter_var(env('DEBUG', false), FILTER_VALIDATE_BOOLEAN),
|
||||
|
||||
/*
|
||||
* Security and encryption configuration
|
||||
*
|
||||
* - salt - A random string used in security hashing methods.
|
||||
* The salt value is also used as the encryption key.
|
||||
* You should treat it as extremely sensitive data.
|
||||
*/
|
||||
'debug' => false,
|
||||
'Security' => [
|
||||
'salt' => env('SECURITY_SALT', '__SALT__'),
|
||||
'salt' => 'foobar',
|
||||
],
|
||||
|
||||
/*
|
||||
* Connection information used by the ORM to connect
|
||||
* to your application's datastores.
|
||||
*
|
||||
* See app.php for more configuration options.
|
||||
*/
|
||||
'Datasources' => [
|
||||
'default' => [
|
||||
'host' => '127.0.0.1',
|
||||
/*
|
||||
* CakePHP will use the default DB port based on the driver selected
|
||||
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment
|
||||
* the following line and set the port accordingly
|
||||
*/
|
||||
//'port' => 'non_standard_port_number',
|
||||
|
||||
'username' => env('MISP_DB_USER', 'misp'),
|
||||
'password' => env('MISP_DB_PASSWORD'),
|
||||
'database' => env('MISP_DB', 'misp3'),
|
||||
/**
|
||||
* If not using the default 'public' schema with the PostgreSQL driver
|
||||
* set it here.
|
||||
*/
|
||||
//'schema' => 'myapp',
|
||||
|
||||
/**
|
||||
* You can use a DSN string to set the entire configuration
|
||||
*/
|
||||
// 'url' => env('DATABASE_URL', null),
|
||||
'username' => 'misp',
|
||||
'password' => 'misp',
|
||||
'database' => 'misp3_test',
|
||||
],
|
||||
/*
|
||||
* The test connection is used during the test suite.
|
||||
|
@ -78,14 +37,6 @@ return [
|
|||
'database' => 'misp3_test',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
* Email configuration.
|
||||
*
|
||||
* Host and credential configuration in case you are using SmtpTransport
|
||||
*
|
||||
* See app.php for more configuration options.
|
||||
*/
|
||||
'EmailTransport' => [
|
||||
'default' => [
|
||||
'host' => '127.0.0.1',
|
||||
|
|
|
@ -16,7 +16,7 @@ If running locally:
|
|||
Add a `misp3_test` database to the database:
|
||||
```mysql
|
||||
CREATE DATABASE misp3_test;
|
||||
GRANT ALL PRIVILEGES ON misp3_test.* to misp@localhost;
|
||||
GRANT ALL PRIVILEGES ON misp3_test.* to misp@'%';
|
||||
FLUSH PRIVILEGES;
|
||||
QUIT;
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue