Skip to content

Commit

Permalink
Improve gha (#318)
Browse files Browse the repository at this point in the history
* fix: github organization name

Fix the github organization name to in-toto.

Signed-off-by: Kairo de Araujo <[email protected]>

* pin GHA full-length commit SHA

It's a good practice to pin the GitHub Actions with full-length
commit sha as described in the "Security hardening for GitHub
Actions".
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions

I noticed that dependabot also checks weekly with updates.
It will maintain the updates using the hash.

Signed-off-by: Kairo de Araujo <[email protected]>

* fixup! pin GHA full-length commit SHA

* fixup! pin GHA full-length commit SHA

---------

Signed-off-by: Kairo de Araujo <[email protected]>
Co-authored-by: Kairo de Araujo <[email protected]>
Co-authored-by: John Kjell <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2023
1 parent f65b232 commit 81bdfce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
needs: [sast, unit-test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/witness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
on:
workflow_call:
inputs:
pull_request:
pull_request:
required: true
type: boolean
artifact-download:
Expand All @@ -39,7 +39,7 @@ on:
attestations:
required: true
type: string

jobs:
witness:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ builds:
- "-s -w"
- "-extldflags=-zrelro"
- "-extldflags=-znow"
- "-extldflags -w -X 'github.com/testifysec/witness/cmd.Version={{.Tag}}-{{.ShortCommit}}'"
- "-extldflags -w -X 'github.com/in-toto/witness/cmd.Version={{.Tag}}-{{.ShortCommit}}'"
env:
- "CGO_ENABLED=0"
- "GO111MODULE=on"
Expand Down Expand Up @@ -40,7 +40,7 @@ release:
github:
owner: "{{ .Env.GITHUB_REPOSITORY_OWNER }}"
kos:
- repository: ghcr.io/testifysec/witness
- repository: ghcr.io/in-toto/witness
tags:
- '{{.Version}}'
bare: true
Expand Down

0 comments on commit 81bdfce

Please sign in to comment.