Skip to content

Commit

Permalink
ci: added image decription for packages stored in github #patch (#10)
Browse files Browse the repository at this point in the history
* ci: added image decription for packages stored in github #patch

* chore: formatted files

---------

Co-authored-by: Tomi Amao <[email protected]>
  • Loading branch information
tomi-amao and tomi-amao-devop authored Aug 10, 2024
1 parent 7aff4a7 commit 565e9f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/quality-security.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Code Quality & Security

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
Expand Down Expand Up @@ -34,7 +32,6 @@ jobs:
- name: Run Prettier
run: npx prettier . --check
continue-on-error: true

- name: Run ESLint
run: npx eslint .
Expand Down Expand Up @@ -70,7 +67,6 @@ jobs:
- name: Authenticate snyk
run: snyk auth "$SNYK_TOKEN"
env:
# This is where you will need to introduce the Snyk API token created with your Snyk account
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# Runs Snyk Code (SAST) analysis and uploads result into GitHub.
# Use || true to not fail the pipeline
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
attestations: write
id-token: write
steps:
- name: Get current date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV

- name: Check out the repo
uses: actions/checkout@v4

Expand Down Expand Up @@ -103,7 +106,7 @@ jobs:
provenance: mode=max #create attestation for docker image
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=image,name=target,${{ steps.meta.outputs.annotations }},${{steps.meta.outputs.labels}}
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description="Date;${{ env.CURRENT_DATE }} Reposoitory; ${{ github.repository }} Repo URL; ${{github.repositoryUrl}} Commit SHA; ${{github.sha}} "

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit 565e9f2

Please sign in to comment.