Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Borewit/music-metadata
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5ea3e3672289ba507d9612724551f2b611d482e4
Choose a base ref
...
head repository: Borewit/music-metadata
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8161713b034d80af7855b9d782898c84964a5a83
Choose a head ref

Commits on Jan 3, 2021

  1. Add NPM module funding entry

    Borewit committed Jan 3, 2021
    Copy the full SHA
    6af6b01 View commit details
  2. 7.6.1

    Borewit committed Jan 3, 2021
    Copy the full SHA
    bf6e89b View commit details

Commits on Jan 4, 2021

  1. Copy the full SHA
    9336df0 View commit details
  2. Bump eslint from 7.16.0 to 7.17.0

    Bumps [eslint](https://github.com/eslint/eslint) from 7.16.0 to 7.17.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
    - [Commits](eslint/eslint@v7.16.0...v7.17.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Jan 4, 2021
    Copy the full SHA
    e7e8575 View commit details
  3. Bump strtok3 from 6.0.4 to 6.0.6

    Bumps [strtok3](https://github.com/Borewit/strtok3) from 6.0.4 to 6.0.6.
    - [Release notes](https://github.com/Borewit/strtok3/releases)
    - [Commits](Borewit/strtok3@v6.0.4...v6.0.6)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Jan 4, 2021
    Copy the full SHA
    7d039d9 View commit details
  4. Copy the full SHA
    f8d3fc9 View commit details
  5. Copy the full SHA
    cdff525 View commit details
  6. Copy the full SHA
    5705e02 View commit details
  7. Fix stream example

    Borewit committed Jan 4, 2021
    Copy the full SHA
    ccf72ba View commit details
  8. Copy the full SHA
    1e7e5fe View commit details
  9. 7.6.2

    Borewit committed Jan 4, 2021
    Copy the full SHA
    70f5051 View commit details

Commits on Jan 5, 2021

  1. Copy the full SHA
    ce9d079 View commit details
  2. Copy the full SHA
    a590b7e View commit details

Commits on Jan 10, 2021

  1. Get rid of assert dependency.

    Borewit committed Jan 10, 2021
    Copy the full SHA
    abbaafd View commit details
  2. 7.6.3

    Borewit committed Jan 10, 2021
    Copy the full SHA
    89ff2e8 View commit details

Commits on Jan 11, 2021

  1. Bump token-types from 2.1.0 to 2.1.1

    Bumps [token-types](https://github.com/Borewit/token-types) from 2.1.0 to 2.1.1.
    - [Release notes](https://github.com/Borewit/token-types/releases)
    - [Commits](Borewit/token-types@v2.1.0...v2.1.1)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Jan 11, 2021
    Copy the full SHA
    99c3e19 View commit details
  2. Copy the full SHA
    9922f87 View commit details
  3. Copy the full SHA
    b51a833 View commit details
  4. 7.6.4

    Borewit committed Jan 11, 2021
    Copy the full SHA
    07db3d9 View commit details

Commits on Jan 14, 2021

  1. Bump file-type from 16.1.0 to 16.2.0

    Bumps [file-type](https://github.com/sindresorhus/file-type) from 16.1.0 to 16.2.0.
    - [Release notes](https://github.com/sindresorhus/file-type/releases)
    - [Commits](sindresorhus/file-type@v16.1.0...v16.2.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Jan 14, 2021
    Copy the full SHA
    d52e727 View commit details
  2. Copy the full SHA
    9400ac2 View commit details

Commits on Jan 15, 2021

  1. Copy the full SHA
    adf2b53 View commit details
  2. Copy the full SHA
    761a08b View commit details
  3. Trigger on pull-request

    Borewit committed Jan 15, 2021
    Copy the full SHA
    d47097b View commit details

Commits on Jan 17, 2021

  1. Fix unit test

    Borewit committed Jan 17, 2021
    Copy the full SHA
    15cfe4c View commit details

Commits on Jan 18, 2021

  1. Bump mime from 2.4.7 to 2.5.0

    Bumps [mime](https://github.com/broofa/mime) from 2.4.7 to 2.5.0.
    - [Release notes](https://github.com/broofa/mime/releases)
    - [Changelog](https://github.com/broofa/mime/blob/master/CHANGELOG.md)
    - [Commits](broofa/mime@v2.4.7...v2.5.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Jan 18, 2021
    Copy the full SHA
    9ea24c5 View commit details
  2. Copy the full SHA
    e523b3d View commit details
  3. Bump eslint from 7.17.0 to 7.18.0

    Bumps [eslint](https://github.com/eslint/eslint) from 7.17.0 to 7.18.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
    - [Commits](eslint/eslint@v7.17.0...v7.18.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Jan 18, 2021
    Copy the full SHA
    c31eda5 View commit details
  4. Copy the full SHA
    53fb3db View commit details

Commits on Jan 20, 2021

  1. Copy the full SHA
    4653b39 View commit details
  2. Copy the full SHA
    7614a9c View commit details

Commits on Jan 27, 2021

  1. Buffer toString accepts 'end' for third parameter not length, so appl…

    …y off + 4 instead of a fixed value of 4
    onerpm authored and Borewit committed Jan 27, 2021
    Copy the full SHA
    e998241 View commit details
  2. Add unit test for issue #740

    onerpm authored and Borewit committed Jan 27, 2021
    Copy the full SHA
    e63e69e View commit details
  3. 7.6.5

    Borewit committed Jan 27, 2021
    Copy the full SHA
    f5ada43 View commit details

Commits on Jan 28, 2021

  1. 7.6.6

    Borewit committed Jan 28, 2021
    Copy the full SHA
    d6d245b View commit details

Commits on Jan 29, 2021

  1. Trigger on push only

    Borewit committed Jan 29, 2021
    Copy the full SHA
    6f198ef View commit details

Commits on Feb 1, 2021

  1. Bump eslint from 7.18.0 to 7.19.0

    Bumps [eslint](https://github.com/eslint/eslint) from 7.18.0 to 7.19.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
    - [Commits](eslint/eslint@v7.18.0...v7.19.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Feb 1, 2021
    Copy the full SHA
    d1a3aa5 View commit details
  2. Copy the full SHA
    3950466 View commit details

Commits on Feb 4, 2021

  1. Copy the full SHA
    455ab25 View commit details
  2. Copy the full SHA
    171ef7a View commit details
  3. Copy the full SHA
    63e0f29 View commit details
  4. #744: Add unit test.

    Borewit committed Feb 4, 2021
    Copy the full SHA
    d56cf69 View commit details
  5. 7.6.7

    Borewit committed Feb 4, 2021
    Copy the full SHA
    5c86aac View commit details

Commits on Feb 5, 2021

  1. Copy the full SHA
    47e667c View commit details
  2. Copy the full SHA
    e921f51 View commit details
  3. Bump chai from 4.2.0 to 4.3.0

    Bumps [chai](https://github.com/chaijs/chai) from 4.2.0 to 4.3.0.
    - [Release notes](https://github.com/chaijs/chai/releases)
    - [Changelog](https://github.com/chaijs/chai/blob/master/History.md)
    - [Commits](chaijs/chai@4.2.0...4.3.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Feb 5, 2021
    Copy the full SHA
    8d371dd View commit details
  4. Copy the full SHA
    c4daf32 View commit details

Commits on Feb 6, 2021

  1. Copy the full SHA
    892dab3 View commit details
  2. Copy the full SHA
    d3e7618 View commit details
  3. 7.6.8

    Borewit committed Feb 6, 2021
    Copy the full SHA
    a126b6d View commit details
Showing with 5,860 additions and 4,002 deletions.
  1. +0 −45 .dependabot/config.yml
  2. +246 −0 .eslintrc.json
  3. +16 −0 .github/dependabot.yml
  4. +70 −0 .github/workflows/codeql-analysis.yml
  5. +4 −3 .github/workflows/nodejs-ci.yml
  6. +0 −13 .github/workflows/security.yml
  7. +2 −1 .gitignore
  8. +9 −0 LICENSE.txt
  9. +15 −11 README.md
  10. +1 −1 appveyor.yml
  11. +6 −6 doc-gen/MarkDown.ts
  12. +11 −9 doc-gen/gen.ts
  13. +3 −1 doc-gen/tsconfig.json
  14. +10 −10 doc/common_metadata.md
  15. +5 −0 example/.eslintrc.json
  16. +1 −1 example/javascript/javascript.js
  17. +4 −3 example/javascript/stream.js
  18. +2 −2 example/javascript/walk.js
  19. +9 −8 example/typescript/typescript.ts
  20. +12 −12 lib/ParserFactory.ts
  21. +4 −5 lib/aiff/AiffParser.ts
  22. +6 −6 lib/aiff/AiffToken.ts
  23. +13 −15 lib/apev2/APEv2Parser.ts
  24. +12 −11 lib/apev2/APEv2Token.ts
  25. +23 −26 lib/asf/AsfObject.ts
  26. +13 −12 lib/asf/AsfParser.ts
  27. +10 −11 lib/asf/AsfUtil.ts
  28. +14 −18 lib/asf/GUID.ts
  29. +4 −3 lib/common/BasicParser.ts
  30. +1 −1 lib/common/CaseInsensitiveTagMap.ts
  31. +12 −12 lib/common/CombinedTagMapper.ts
  32. +5 −5 lib/common/FourCC.ts
  33. +4 −25 lib/common/GenericTagMapper.ts
  34. +8 −11 lib/common/MetadataCollector.ts
  35. +0 −25 lib/common/RandomBufferReader.ts
  36. +13 −17 lib/common/RandomFileReader.ts
  37. +26 −0 lib/common/RandomUint8ArrayReader.ts
  38. +120 −138 lib/common/Util.ts
  39. +0 −51 lib/common/Windows1292Decoder.ts
  40. +8 −8 lib/core.ts
  41. +29 −29 lib/dsdiff/DsdiffParser.ts
  42. +6 −5 lib/dsdiff/DsdiffToken.ts
  43. +9 −9 lib/dsf/DsfChunk.ts
  44. +9 −12 lib/dsf/DsfParser.ts
  45. +20 −22 lib/flac/FlacParser.ts
  46. +45 −47 lib/id3v1/ID3v1Parser.ts
  47. +2 −2 lib/id3v1/ID3v1TagMap.ts
  48. +12 −12 lib/id3v2/AbstractID3Parser.ts
  49. +119 −64 lib/id3v2/FrameParser.ts
  50. +4 −1 lib/id3v2/ID3v22TagMapper.ts
  51. +125 −123 lib/id3v2/ID3v24TagMapper.ts
  52. +58 −74 lib/id3v2/ID3v2Parser.ts
  53. +15 −14 lib/id3v2/ID3v2Token.ts
  54. +23 −4 lib/iff/index.ts
  55. +15 −4 lib/index.ts
  56. +8 −8 lib/matroska/MatroskaDtd.ts
  57. +48 −21 lib/matroska/MatroskaParser.ts
  58. +10 −4 lib/matroska/MatroskaTagMapper.ts
  59. +2 −2 lib/matroska/types.ts
  60. +16 −19 lib/mp4/Atom.ts
  61. +19 −20 lib/mp4/AtomToken.ts
  62. +38 −32 lib/mp4/MP4Parser.ts
  63. +50 −0 lib/mpeg/ExtendedLameHeader.ts
  64. +37 −31 lib/mpeg/MpegParser.ts
  65. +75 −0 lib/mpeg/ReplayGainDataFormat.ts
  66. +21 −10 lib/mpeg/XingTag.ts
  67. +5 −4 lib/musepack/index.ts
  68. +4 −6 lib/musepack/sv7/MpcSv7Parser.ts
  69. +12 −12 lib/musepack/sv7/StreamVersion7.ts
  70. +4 −6 lib/musepack/sv8/MpcSv8Parser.ts
  71. +8 −7 lib/musepack/sv8/StreamVersion8.ts
  72. +1 −1 lib/ogg/Ogg.ts
  73. BIN lib/ogg/OggParser.ts
  74. +2 −1 lib/ogg/opus/OpusParser.ts
  75. +4 −3 lib/ogg/speex/Speex.ts
  76. +5 −4 lib/ogg/speex/SpeexParser.ts
  77. +1 −1 lib/ogg/theora/Theora.ts
  78. +3 −2 lib/ogg/theora/TheoraParser.ts
  79. +13 −25 lib/ogg/vorbis/Vorbis.ts
  80. +2 −2 lib/ogg/vorbis/VorbisDecoder.ts
  81. +3 −2 lib/ogg/vorbis/VorbisParser.ts
  82. +5 −4 lib/riff/RiffChunk.ts
  83. +30 −16 lib/type.ts
  84. +41 −0 lib/wav/BwfChunk.ts
  85. +6 −4 lib/wav/WaveChunk.ts
  86. +38 −10 lib/wav/WaveParser.ts
  87. +10 −14 lib/wavpack/WavPackParser.ts
  88. +6 −5 lib/wavpack/WavPackToken.ts
  89. +40 −27 package.json
  90. +14 −0 test/.eslintrc.json
  91. +4 −2 test/metadata-parsers.ts
  92. BIN test/samples/matroska/My Baby Boy.webm
  93. BIN test/samples/matroska/fixture-null.webm
  94. +72 −0 test/samples/matroska/stream.weba
  95. BIN test/samples/mp3/Betty Lou.mp3
  96. BIN test/samples/mp3/issue-795.mp3
  97. BIN test/samples/mp3/issue-802.mp3
  98. BIN test/samples/mp3/issue-828.mp3
  99. BIN test/samples/mp3/issue-979.mp3
  100. BIN test/samples/mp3/lame-peak.mp3
  101. BIN test/samples/mp3/tcon.mp3
  102. BIN test/samples/{ → mp4}/01. Trumpsta (Djuro Remix).m4a
  103. BIN test/samples/mp4/issue-744.mp4
  104. BIN test/samples/mp4/issue-749.m4a
  105. BIN test/samples/wav/issue-1163.bwf
  106. BIN test/samples/wav/issue-819.wav
  107. BIN test/samples/wav/odd-list-type.wav
  108. +3 −3 test/test-async.ts
  109. +41 −41 test/test-comment-mapping.ts
  110. +2 −26 test/test-common.ts
  111. +2 −1 test/test-concurrent-picture.ts
  112. +5 −3 test/test-discogs.ts
  113. +4 −2 test/test-dsdiff.ts
  114. +5 −4 test/test-file-aac.ts
  115. +11 −10 test/test-file-aiff.ts
  116. +4 −4 test/test-file-ape.ts
  117. +41 −34 test/test-file-asf.ts
  118. +13 −11 test/test-file-dsf.ts
  119. +1 −2 test/test-file-flac.ts
  120. +50 −2 test/test-file-matroska.ts
  121. +58 −11 test/test-file-mp3.ts
  122. +59 −6 test/test-file-mp4.ts
  123. +16 −21 test/test-file-mpeg.ts
  124. +6 −4 test/test-file-musepack.ts
  125. +6 −5 test/test-file-ogg.ts
  126. +0 −158 test/test-file-riff.ts
  127. +199 −0 test/test-file-wav.ts
  128. +5 −2 test/test-file-wavpack.ts
  129. +1 −0 test/test-http.ts
  130. +8 −7 test/test-id3v1.1.ts
  131. +7 −6 test/test-id3v2-duration-allframes.ts
  132. +4 −3 test/test-id3v2-lyrics.ts
  133. +4 −3 test/test-id3v2-unknownframe.ts
  134. +4 −3 test/test-id3v2-utf16encoded.ts
  135. +4 −3 test/test-id3v2-xheader.ts
  136. +51 −4 test/test-id3v2.2.ts
  137. +41 −6 test/test-id3v2.3.ts
  138. +4 −2 test/test-id3v2.4-musicbrainz.ts
  139. +15 −3 test/test-id3v2.4.ts
  140. +5 −3 test/test-merge-tag-headers.ts
  141. +39 −47 test/test-mime.ts
  142. +4 −3 test/test-musicbrainz-picard-vorbis.ts
  143. +4 −2 test/test-no-metadata.ts
  144. +4 −3 test/test-nonasciichars.ts
  145. +2 −1 test/test-options.ts
  146. +32 −32 test/test-picard-mappings.ts
  147. +5 −6 test/test-picard-parsing.ts
  148. +316 −602 test/test-pr-544.ts
  149. +13 −13 test/test-regress-GH-56.ts
  150. +1 −1 test/test-replay-gain.ts
  151. +5 −5 test/test-replaygain.ts
  152. +4 −2 test/test-trackinfo.ts
  153. +4 −3 test/test-ufid.ts
  154. +4 −2 test/test-unknownencoding.ts
  155. +6 −5 test/test-utf16bom-encoding.ts
  156. +29 −28 test/test-util.ts
  157. +5 −2 test/util.ts
  158. +1 −2 tsconfig.json
  159. +0 −26 tslint.json
  160. +2,833 −1,571 yarn.lock
45 changes: 0 additions & 45 deletions .dependabot/config.yml

This file was deleted.

246 changes: 246 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-node",
"eslint-plugin-unicorn",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Object": {
"message": "Avoid using the `Object` type. Did you mean `object`?"
},
"Function": {
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
},
"Boolean": {
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
},
"Number": {
"message": "Avoid using the `Number` type. Did you mean `number`?"
},
"String": {
"message": "Avoid using the `String` type. Did you mean `string`?"
},
"Symbol": {
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
}
}
}
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/indent": [
"error",
2,
{
"ObjectExpression": "first",
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
},
"SwitchCase": 1
}
],
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-empty-function": [
"error",
{
"allow": [
"constructors"
]
}
],
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "always",
"types": "prefer-import",
"lib": "always"
}
],
"@typescript-eslint/unified-signatures": "error",
"arrow-parens": [
"error",
"as-needed"
],
"comma-dangle": "error",
"complexity": "off",
"constructor-super": "error",
"curly": "off",
"default-case": "off",
"dot-notation": "error",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "off",
"id-denylist": [
"error",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined"
],
"id-match": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": false
}
],
"import/no-internal-modules": "off",
"import/order": "off",
"import/no-unresolved": ["error", {"caseSensitiveStrict": true }],
"indent": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"jsdoc/newline-after-description": [
"error",
"never"
],
"max-classes-per-file": "off",
"max-len": [
"error",
{
"code": 200
}
],
"new-parens": "error",
"no-bitwise": "off",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-debugger": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-empty-function": "off",
"no-eval": "error",
"no-extra-bind": "error",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-redeclare": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": "off",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-use-before-define": "off",
"no-var": "error",
"node/file-extension-in-import": ["off"],
"node/no-extraneous-import": "error",
"object-shorthand": "error",
"one-var": [
"error",
"never"
],
"prefer-const": "error",
"prefer-object-spread": "error",
"quote-props": [
"error",
"as-needed"
],
"quotes": "off",
"radix": "error",
"semi": "error",
"space-in-parens": [
"error",
"never"
],
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"unicorn/prefer-ternary": "error",
"use-isnan": "error",
"valid-typeof": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": [
"lib/tsconfig.json",
"test/tsconfig.json",
"doc-gen/tsconfig.json"
]
}
}
}
}

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: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
labels:
- dependencies
versioning-strategy: increase
ignore:
- dependency-name: "@types/node"
update-types: [ "version-update:semver-patch" ]
- dependency-name: "@types/jasmine"
update-types: [ "version-update:semver-patch" ]
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '20 3 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# 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

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Loading