Skip to content

Commit

Permalink
chore(CI): explicitly specify trivy cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Sep 21, 2024
1 parent ebd230e commit c3fc6bf
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: meysam81
name: general
version: 1.2.0
version: 1.2.2
readme: README.md
authors:
- Meysam Azad <[email protected]>
Expand Down
39 changes: 38 additions & 1 deletion roles/haproxy/README.md
Original file line number Diff line number Diff line change
@@ -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).
1 change: 1 addition & 0 deletions trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ scan:
severity:
- HIGH
- CRITICAL
cache-dir: $HOME/.cache/trivy

0 comments on commit c3fc6bf

Please sign in to comment.