summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorJohn Bampton <[email protected]>2021-02-13 16:13:30 +1000
committerJohn Bampton <[email protected]>2021-02-13 16:13:30 +1000
commit4c7ecbb8a64c9233bc7d08d071b045ebb755ca0e (patch)
tree7b9f457614a3d75bfc317c3664e15afb83d1fb1a /.github/workflows
parentacdd939d80641e6683b5a2ae575f8e614c36890b (diff)
downloadmruby-4c7ecbb8a64c9233bc7d08d071b045ebb755ca0e.tar.gz
mruby-4c7ecbb8a64c9233bc7d08d071b045ebb755ca0e.zip
refactor: only use certified GitHub Actions to increase security
Official -> "The individual jobs in a workflow can interact with (and compromise) other jobs. For example, a job querying the environment variables used by a later job, writing files to a shared directory that a later job processes, or even more directly by interacting with the Docker socket and inspecting other running containers and executing commands in them. This means that a compromise of a single action within a workflow can be very significant, as that compromised action would have access to all secrets configured on your repository, and can use the GITHUB_TOKEN to write to the repository. Consequently, there is significant risk in sourcing actions from third-party repositories on GitHub. " https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ed1682b05..b2ba316b2 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -8,8 +8,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
+ architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install yamllint
- name: 🧹 YAML Lint
- uses: ibiqlik/action-yamllint@v3
+ run: |
+ # return non-zero exit code on warnings
+ yamllint --strict .
markdownlint:
name: 🍸 Markdown
runs-on: ubuntu-latest