Skip to content

Commit

Permalink
Free space in release job to avoid no space left on device (#3914)
Browse files Browse the repository at this point in the history
* Free space in release job to avoid no space left on device

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
  • Loading branch information
nvuillam and nvuillam authored Aug 20, 2024
1 parent c217fe8 commit a1fb016
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 23 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-RELEASE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

# Free disk space
- name: Free Disk space
shell: bash
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
sudo rm -rf /opt/ghc
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Get current date
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> ${GITHUB_ENV}

Expand Down
45 changes: 23 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- Flavors

- CI
- Free space in release job to avoid no space left on device

- mega-linter-runner

Expand All @@ -32,56 +33,56 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
## [v8.0.0] - 2024-08-19

- Reporters
- New [**ApiReporter**](https://megalinter.io/beta/reporters/ApiReporter/) (can be used to build Grafana dashboards), by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3540
- New [**ApiReporter**](https://megalinter.io/beta/reporters/ApiReporter/) (can be used to build Grafana dashboards), by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3540>

[![Upgrade to v8 Video](https://img.youtube.com/vi/vbx-ifa1oXE/0.jpg)](https://www.youtube.com/watch?v=vbx-ifa1oXE)

- Removed deprecated linters, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3854
- Removed deprecated linters, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3854>
- CSS_SCSSLINT: [Project discontinued and advising to use stylelint](https://github.com/sds/scss-lint#notice-consider-other-tools-before-adopting-scss-lint)
- OPENAPI_SPECTRAL: Replaced by [API_SPECTRAL](https://megalinter.io/latest/descriptors/api_spectral/) (same linter but more formats handled)
- SQL_SQL_LINT: [Project no longer maintained](https://github.com/joereynolds/sql-lint/issues/262)

- Core
- Hide to linters by default all environment variables that contain **TOKEN**, **USERNAME** or **PASSWORD**, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3881
- Allow to override CLI_LINT_MODE when defined as project, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3772
- Allow to use absolute paths for LINTER_RULES_PATH, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3775
- Allow to update variables from [PRE/POST Commands](https://megalinter.io/latest/config-precommands/) using `output_variables` property, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3861
- Hide to linters by default all environment variables that contain **TOKEN**, **USERNAME** or **PASSWORD**, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3881>
- Allow to override CLI_LINT_MODE when defined as project, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3772>
- Allow to use absolute paths for LINTER_RULES_PATH, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3775>
- Allow to update variables from [PRE/POST Commands](https://megalinter.io/latest/config-precommands/) using `output_variables` property, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3861>

- Media
- [MegaLinter: un linter pour les gouverner tous](https://blog.wescale.fr/megalinter-un-linter-pour-les-gouverner-tous) (FR), by [Guillaume Arnaud](https://www.linkedin.com/in/guillaume-arnaud/) from [WeScale](https://www.wescale.fr/)
- [MegaLinter](https://blog.stephane-robert.info/docs/developper/autres-outils/linters/megalinter/), by [Stéphane Robert](https://www.linkedin.com/in/stephanerobert1/), from [3DS OutScale](https://fr.outscale.com/)
- [30 Seconds to Setup MegaLinter: Your Go-To Tool for Automated Code Quality](https://medium.com/@caodanju/30-seconds-to-setup-megalinter-your-go-to-tool-for-automated-code-quality-and-iac-security-969d90a5a99c), by [Peng Cao](https://www.linkedin.com/in/peng-cao-83b6a2103/) |

- Linters enhancements
- [bandit](https://megalinter.io/latest/descriptors/python_bandit/) Call bandit with quiet mode to generate less logs, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3892
- [grype](https://megalinter.io/latest/descriptors/repository_grype/) Count number of errors returned by Grype, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3906
- [yamllint](https://megalinter.io/latest/descriptors/yaml_yamllint) Fix yamllint default format to avoid special characters or GitHub sections in text logs, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3898
- [bandit](https://megalinter.io/latest/descriptors/python_bandit/) Call bandit with quiet mode to generate less logs, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3892>
- [grype](https://megalinter.io/latest/descriptors/repository_grype/) Count number of errors returned by Grype, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3906>
- [yamllint](https://megalinter.io/latest/descriptors/yaml_yamllint) Fix yamllint default format to avoid special characters or GitHub sections in text logs, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3898>

- Fixes
- [terrascan](https://runterrascan.io/) fixed errors and removed redundant code, by @TommyE123 in https://github.com/oxsecurity/megalinter/pull/3767
- [dotnet-format](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-format) various performance improvements and ability to specify sln or proj paths, by @TommyE123 in https://github.com/oxsecurity/megalinter/pull/3741
- [terrascan](https://runterrascan.io/) fixed errors and removed redundant code, by @TommyE123 in <https://github.com/oxsecurity/megalinter/pull/3767>
- [dotnet-format](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-format) various performance improvements and ability to specify sln or proj paths, by @TommyE123 in <https://github.com/oxsecurity/megalinter/pull/3741>
- [swiftlint](https://github.com/realm/SwiftLint) Remove deprecated argument --path
- Salesforce linters: Disable SF CLI auto update warning, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3883
- Salesforce linters: Disable SF CLI auto update warning, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3883>

- Doc
- Add images and links to Git, CI/CD & other tools integrations at the beginning of the README, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3885
- Create README animated GIF presentation of MegaLinter, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3910
- Format mkdocs search index in place, by @echoix in https://github.com/oxsecurity/megalinter/pull/3890
- Use consistent spelling of 'flavor', by @InputUsername in https://github.com/oxsecurity/megalinter/pull/3789
- Add images and links to Git, CI/CD & other tools integrations at the beginning of the README, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3885>
- Create README animated GIF presentation of MegaLinter, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3910>
- Format mkdocs search index in place, by @echoix in <https://github.com/oxsecurity/megalinter/pull/3890>
- Use consistent spelling of 'flavor', by @InputUsername in <https://github.com/oxsecurity/megalinter/pull/3789>

- CI
- Fix docker warnings, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3853
- Fix docker warnings, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3853>
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match
- NoEmptyContinuation: Empty continuation line
- SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data
- Port Beta workflows to use docker/metadata-action, by @echoix in https://github.com/oxsecurity/megalinter/pull/3860
- AutoUpdate linters: Always create a PR if the job has been started manually, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3863
- Port Beta workflows to use docker/metadata-action, by @echoix in <https://github.com/oxsecurity/megalinter/pull/3860>
- AutoUpdate linters: Always create a PR if the job has been started manually, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3863>
- Add `skip_checkout: true` to default MegaLinter GitHub Action template
- Remove path filters in deploy-DEV workflow as it is a required check by @echoix in https://github.com/oxsecurity/megalinter/pull/3894
- Remove path filters in deploy-DEV workflow as it is a required check by @echoix in <https://github.com/oxsecurity/megalinter/pull/3894>

- mega-linter-runner
- Add new rules to upgrade to MegaLinter v8, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3896
- Replace glob-promise by glob library, by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3902
- Add new rules to upgrade to MegaLinter v8, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3896>
- Replace glob-promise by glob library, by @nvuillam in <https://github.com/oxsecurity/megalinter/pull/3902>
- **Minimum NodeJs version is now 20.x**

- Linter versions upgrades
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/xml_xmllint.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To apply file formatting you must set `XML_XMLLINT_CLI_LINT_MODE: file` and `XML
| Variable | Description | Default value |
|-----------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------|
| XML_XMLLINT_AUTOFORMAT | If set to `true`, it will reformat and reindent the output | `false` |
| XML_XMLLINT_INDENT | The number of indentation spaces when `XML_XMLLINT_AUTOFORMAT` is `true` | ` ` |
| XML_XMLLINT_INDENT | The number of indentation spaces when `XML_XMLLINT_AUTOFORMAT` is `true` | `` |
| XML_XMLLINT_ARGUMENTS | User custom arguments to add in linter CLI call<br/>Ex: `-s --foo "bar"` | |
| XML_XMLLINT_COMMAND_REMOVE_ARGUMENTS | User custom arguments to remove from command line before calling the linter<br/>Ex: `-s --foo "bar"` | |
| XML_XMLLINT_FILTER_REGEX_INCLUDE | Custom regex including filter<br/>Ex: `(src\|lib)` | Include every file |
Expand Down

0 comments on commit a1fb016

Please sign in to comment.