feat: use chmod and restore original permissions to improve security #71
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bash CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
shellcheck: | |
name: Validation with ShellCheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run ShellCheck on jade-diy | |
uses: ludeeus/action-shellcheck@master | |
env: | |
SHELLCHECK_OPTS: -e SC1091 | |
# | |
# in case we want to use shfmt too | |
#shfmt-checker: | |
# name: Validation with shfmt | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Run shfmt on jade-diy scripts | |
# uses: luizm/action-sh-checker@master | |
# env: | |
# SHFMT_OPTS: -i 2 -sr | |
# with: | |
# sh_checker_shellcheck_disable: true |