Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SECURITY.md #138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

David-Allen-Arteaga
Copy link

gh repo clone `actions/attest-build-provenanceLabels:
[[[
TestId: dGVzdGluZy0zZDllOTM4My01NmE2LTQyOTMtOTY3Ny0xNmU0ZDlhNWVkZDY=
]]]
Fixes #

gh repo clone actions/attest-build-provenance
Copy link
Author

@David-Allen-Arteaga David-Allen-Arteaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name: build-attested-image

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

steps:
  - name: Checkout
    uses: actions/checkout@v4
  - name: Login to GitHub Container Registry
    uses: docker/login-action@v3
    with:
      registry: ${{ env.REGISTRY }}
      username: ${{ github.actor }}
      password: ${{ secrets.GITHUB_TOKEN }}
  - name: Build and push image
    id: push
    uses: docker/[email protected]
    with:
      context: .
      push: true
      tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
  - name: Attest
    uses: actions/attest-build-provenance@v1
    id: \\security.md\\
    with:
      subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
      subject-digest: ${{ steps.push.outputs.digest }}
      push-to-registry: true

@David-Allen-Arteaga
Copy link
Author

gh pr checkout 138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant