Skip to content

Commit

Permalink
update to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar authored Oct 28, 2024
1 parent 7080472 commit d3db70e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
script: |
if (getDistribution() != "nightly") exit(-1)
- name: change dist test
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
script: |
// Refering to a different dist is not supporte so the same should be kept
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/updateBadge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Push
env:
GH_TOKEN: ${{ github.token }}
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: "ojob.io/git/hub/contentIn"
args: "message=\"update badge\" paths=.github/ojobs/version.svg branch=\"${{ github.ref_name }}\""
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/updateVersion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
- name: Update version files
env :
GH_TOKEN: ${{ github.token }}
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: '.github/ojobs/replaceVersion.yaml'
dist: 't8'

- name: Push
env :
GH_TOKEN: ${{ github.token }}
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: "ojob.io/git/hub/contentIn"
args: "message=\"update files\" paths=README.md,USES.md branch=\"${{ github.ref_name }}\""
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ On a GitHub action step add the following entry:

````yaml
- name: Executing an oJob
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
# the reference to a local oJob yaml/json file or a remote oJob.io
ojob: '...'
Expand All @@ -32,7 +32,7 @@ After the first use, in a job, the installation of the OpenAF runtime is reused
path: /tmp/oaf

- name: Executing an oJob
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: '...'
args: 'key1=value1 key2=value2 ...'
Expand All @@ -46,7 +46,7 @@ It's possible to add the oJob YAML definition directly as the action parameters:

````yaml
- name: Executing Hello World
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
def : |
todo:
Expand All @@ -69,7 +69,7 @@ If you have a local OpenAF script you can also run directly.

````yaml
- name: Executing hello.js
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
oaf : scripts/hello.js
args: "name=Tiger"
Expand All @@ -81,7 +81,7 @@ If necessary, it's also possible to embeed a script directly with _script_:

````yaml
- name: Executing hello.js
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
script: |
var params = processExpr(" ")
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
- uses: actions/checkout@v4

- name: Retrieve env variables for testing
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/envs'
````
Expand All @@ -132,7 +132,7 @@ jobs:
- uses: actions/checkout@v4

- name: Echo input args for testing
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/echo'
args: 'abc=123 xyz=abc'
Expand Down Expand Up @@ -162,21 +162,21 @@ jobs:
- uses: actions/checkout@v4

- name: Scan some/image:latest
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/sec/genSecBadge'
args: 'image=some/image:latest file=.github/sec-latest.svg'
dist: 'nightly'

- name: Scan some/image:build
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/sec/genSecBadge'
args: 'image=some/image:build file=.github/sec-build.svg'
dist: 'nightly'

- name: Add the generated badges
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
env :
GH_TOKEN: ${{ github.token }}
with:
Expand All @@ -201,7 +201,7 @@ jobs:
- uses: actions/checkout@v4

- name: Running get version
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
def : |
todo:
Expand Down
12 changes: 6 additions & 6 deletions USES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steps:
- name: Commit changes
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: "ojob.io/git/hub/contentIn"
args: "message=\"Update files\" title=\"Automated update PR\" paths=\"README.md,changed/path/\" branch=\"${{ github.ref_name }}\""
Expand All @@ -31,7 +31,7 @@ This oJob.io job will use a docker container to scan the provided image with Tri
````yaml
steps:
- name: Scan latest
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/sec/genSecBadge'
args: 'image=openaf/oaf:latest file=.github/sec-latest.svg reportFile=.github/sec-latest.yaml'
Expand All @@ -45,7 +45,7 @@ You can also convert the YAML results into a markdown with a fixed-width tree di
````yaml
steps:
- name: Generate sec-latest.md
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/util/toMDTree'
args: 'inputFile=.github/sec-latest.yaml file=.github/sec-latest.md'
Expand All @@ -69,13 +69,13 @@ To retrieve the trivy database to cache:
```yaml
steps:
- name: Retrieve trivy java database
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/sec/trivy'
args: 'dockerOptions="-v trivy-db:/root/.cache/trivy" options="image --download-java-db-only"'

- name: Retrieve trivy database
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
ojob: 'ojob.io/sec/trivy'
args: 'dockerOptions="-v trivy-db:/root/.cache/trivy" options="image --download-db-only"'
Expand All @@ -99,7 +99,7 @@ You can also write a quick oJob definition to generate a badge with custom value
````yaml
- name: Update version badge
uses: openaf/ojob-action@v5
uses: openaf/ojob-action@v6
with:
def : |
todo:
Expand Down

0 comments on commit d3db70e

Please sign in to comment.