Skip to content

Commit

Permalink
add permissions definition and github token to automatus workflows
Browse files Browse the repository at this point in the history
because new version of delete-artifact requires it
  • Loading branch information
vojtapolasek authored and Mab879 committed Jan 24, 2024
1 parent 8a18abf commit c0503f6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/automatus-cs8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
validate-ubuntu:
name: Run Tests
needs: build-content
permissions:
actions: write
runs-on: ubuntu-20.04
steps:
- name: Install Deps
Expand Down Expand Up @@ -172,6 +174,7 @@ jobs:
if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }}
uses: geekyeggo/delete-artifact@v4
with:
token: ${{ github.token }}
name: ${{ env.DATASTREAM }}
useGlob: false
- name: Fail in case of ERROR present in logs_bash/test_suite.log or logs_ansible/test_suite.log
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/automatus-cs9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
validate-ubuntu:
name: Run Tests
needs: build-content
permissions:
actions: write
runs-on: ubuntu-20.04
steps:
- name: Install Deps
Expand Down Expand Up @@ -172,6 +174,7 @@ jobs:
if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }}
uses: geekyeggo/delete-artifact@v4
with:
token: ${{ github.token }}
name: ${{ env.DATASTREAM }}
useGlob: false
- name: Fail in case of ERROR present in logs_bash/test_suite.log or logs_ansible/test_suite.log
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/automatus-sle15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
validate-ubuntu:
name: Run Tests
needs: build-content
permissions:
actions: write
runs-on: ubuntu-20.04
steps:
- name: Install Deps
Expand Down Expand Up @@ -180,6 +182,7 @@ jobs:
if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }}
uses: geekyeggo/delete-artifact@v4
with:
token: ${{ github.token }}
name: ${{ env.DATASTREAM }}
useGlob: false
- name: Fail in case of ERROR present in logs_bash/test_suite.log or logs_ansible/test_suite.log
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/automatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
validate-ubuntu:
name: Run Tests
needs: build-content
permissions:
actions: write
runs-on: ubuntu-20.04
steps:
- name: Install Deps
Expand Down Expand Up @@ -170,6 +172,7 @@ jobs:
if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }}
uses: geekyeggo/delete-artifact@v4
with:
token: ${{ github.token }}
name: ssg-${{steps.product.outputs.prop}}-ds.xml
useGlob: false
- name: Fail in case of ERROR present in logs_bash/test_suite.log or logs_ansible/test_suite.log
Expand Down

0 comments on commit c0503f6

Please sign in to comment.