|
@@ -14,9 +14,7 @@ on:
|
|
|
branches:
|
|
branches:
|
|
|
- develop
|
|
- develop
|
|
|
|
|
|
|
|
-permissions:
|
|
|
|
|
- contents: write
|
|
|
|
|
- actions: read
|
|
|
|
|
|
|
+permissions: read-all
|
|
|
|
|
|
|
|
concurrency:
|
|
concurrency:
|
|
|
group: sbom-${{ github.ref }}
|
|
group: sbom-${{ github.ref }}
|
|
@@ -30,7 +28,7 @@ jobs:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
|
|
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
|
|
|
permissions:
|
|
permissions:
|
|
|
- contents: write
|
|
|
|
|
|
|
+ contents: ${{ github.event_name == 'pull_request' && 'read' || 'write' }}
|
|
|
actions: read
|
|
actions: read
|
|
|
packages: read
|
|
packages: read
|
|
|
steps:
|
|
steps:
|
|
@@ -71,7 +69,7 @@ jobs:
|
|
|
- name: Checkout Repo
|
|
- name: Checkout Repo
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
with:
|
|
with:
|
|
|
- ref: ${{ github.event_name == 'pull_request' && github.head_ref || steps.branch.outputs.BRANCH_NAME }}
|
|
|
|
|
|
|
+ ref: ${{ github.event_name != 'pull_request' && steps.branch.outputs.BRANCH_NAME || '' }}
|
|
|
|
|
|
|
|
- name: Set OpenCost Image Tag
|
|
- name: Set OpenCost Image Tag
|
|
|
id: image_tag
|
|
id: image_tag
|