From c3fc6bfa28e988fe750a10abe731e40c3d79929e Mon Sep 17 00:00:00 2001 From: Meysam Azad Date: Sat, 21 Sep 2024 23:44:43 +0800 Subject: [PATCH] chore(CI): explicitly specify trivy cache dir --- .github/workflows/ci.yml | 4 +++- galaxy.yml | 2 +- roles/haproxy/README.md | 39 ++++++++++++++++++++++++++++++++++++++- trivy.yaml | 1 + 4 files changed, 43 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e772c67..6d5ede5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,9 @@ jobs: - name: Cache trivy db uses: actions/cache@v4 with: - path: ~/.cache/trivy + path: | + ~/.cache/trivy + ~/work/temp key: ${{ runner.os }}-trivy-db-${{ hashFiles('**/trivy.yaml') }} - name: Run Trivy vulnerability scanner in fs mode uses: aquasecurity/trivy-action@master diff --git a/galaxy.yml b/galaxy.yml index 4dbd6a2..b61c686 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,6 +1,6 @@ namespace: meysam81 name: general -version: 1.2.0 +version: 1.2.2 readme: README.md authors: - Meysam Azad diff --git a/roles/haproxy/README.md b/roles/haproxy/README.md index 6b0a4f3..225dd44 100644 --- a/roles/haproxy/README.md +++ b/roles/haproxy/README.md @@ -1 +1,38 @@ -# HAProxy +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/trivy.yaml b/trivy.yaml index b630dae..e6b4581 100644 --- a/trivy.yaml +++ b/trivy.yaml @@ -8,3 +8,4 @@ scan: severity: - HIGH - CRITICAL +cache-dir: $HOME/.cache/trivy