Skip to content

Commit 01443ad

Browse files
committed
test
1 parent 03fd52d commit 01443ad

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/publish_container.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
build-and-push-image:
1818
runs-on: ubuntu-latest
1919
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
20-
permissions:
20+
permissions:docker pull ghcr.io/ejahngithub/test-generate-provenance:sha-03fd52d8f7ad9e7698c854115629e3396fc93aa6
2121
id-token: write
2222
contents: write
2323
packages: write
@@ -34,7 +34,7 @@ jobs:
3434
username: ${{ github.actor }}
3535
password: ${{ secrets.GITHUB_TOKEN }}
3636
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
37-
- name: Extract metadata (tags, labels) for Docker
37+
- name: Extract metadata (tadockgs, labels) for Docker
3838
id: meta
3939
uses: docker/metadata-action@v5
4040
with:
@@ -73,10 +73,13 @@ jobs:
7373
- name: Generate SBOM for the dev Docker image
7474
uses: anchore/sbom-action@v0
7575
with:
76-
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
76+
path: ./
7777
output-file: sbom-image-latest.json
78-
registry-username: ${{ github.actor }}
79-
registry-password: ${{ secrets.GITHUB_TOKEN }}
78+
- name: Upload sbom-image-latest.json to GitHub
79+
uses: actions/upload-artifact@v2
80+
with:
81+
name: sbom-image-latest.json
82+
path: sbom-image-latest.json
8083
- name: Attest image
8184
uses: github-early-access/generate-build-provenance@main
8285
with:

0 commit comments

Comments
 (0)