From 5981b2ca830dfec1b9cbbf936ebf28035dc3314f Mon Sep 17 00:00:00 2001 From: Jose Ivan Date: Tue, 21 Nov 2023 07:22:11 +0000 Subject: [PATCH 1/5] Create go-ossf-slsa3-publish.yml --- .github/workflows/go-ossf-slsa3-publish.yml | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/go-ossf-slsa3-publish.yml diff --git a/.github/workflows/go-ossf-slsa3-publish.yml b/.github/workflows/go-ossf-slsa3-publish.yml new file mode 100644 index 0000000..79ea193 --- /dev/null +++ b/.github/workflows/go-ossf-slsa3-publish.yml @@ -0,0 +1,38 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow lets you compile your Go project using a SLSA3 compliant builder. +# This workflow will generate a so-called "provenance" file describing the steps +# that were performed to generate the final binary. +# The project is an initiative of the OpenSSF (openssf.org) and is developed at +# https://github.com/slsa-framework/slsa-github-generator. +# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier. +# For more information about SLSA and how it improves the supply-chain, visit slsa.dev. + +name: SLSA Go releaser +on: + workflow_dispatch: + release: + types: [created] + +permissions: read-all + +jobs: + # ======================================================================================================================================== + # Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project. + # See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file + #========================================================================================================================================= + build: + permissions: + id-token: write # To sign. + contents: write # To upload release assets. + actions: read # To read workflow path. + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.4.0 + with: + go-version: 1.17 + # ============================================================================================================= + # Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects + # ============================================================================================================= + From b2f8e4d45584d2d60a19c96a7617dba43a55c84f Mon Sep 17 00:00:00 2001 From: Jose Ivan Date: Fri, 26 Jan 2024 03:18:39 -0800 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37f02c1..ec4e9ff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -LFS Test Server +.LFS Test Server ====== [rel]: https://github.com/github/lfs-test-server/releases From 898aedfe3429002905d5c28aab9d750cddf6bd24 Mon Sep 17 00:00:00 2001 From: Jose Ivan Date: Fri, 26 Jan 2024 03:23:38 -0800 Subject: [PATCH 3/5] Refactor function to improve performance --- .git] | 1 + .vscode/launch.json | 16 ++++++++++++++++ .vscode/settings.json | 11 +++++++++++ app.js | 3 +++ 4 files changed, 31 insertions(+) create mode 100644 .git] create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 app.js diff --git a/.git] b/.git] new file mode 100644 index 0000000..3157af9 --- /dev/null +++ b/.git] @@ -0,0 +1 @@ +git rev-parse --show-toplevel diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8d278da --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "amiga", + "request": "launch", + "name": "Ask for file name", + "config": "A500", + "program": "", + "kickstart": "" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..86b68c4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "python.testing.unittestArgs": [ + "-v", + "-s", + "./script", + "-p", + "*test.py" + ], + "python.testing.pytestEnabled": false, + "python.testing.unittestEnabled": true +} \ No newline at end of file diff --git a/app.js b/app.js new file mode 100644 index 0000000..b2ca0ce --- /dev/null +++ b/app.js @@ -0,0 +1,3 @@ +var msg = "Hello World"; + console.log(msg); + \ No newline at end of file From 44c9100722b07f3486087e855144109cbb586377 Mon Sep 17 00:00:00 2001 From: Jose Ivan Date: Sat, 27 Jan 2024 18:29:29 -0800 Subject: [PATCH 4/5] Create go.yml Workflow. --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..925866c --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From 50ac98983ded876cc9dfd5fcccd2475dd069a23c Mon Sep 17 00:00:00 2001 From: JoseIvanHernandez Date: Thu, 1 Feb 2024 18:03:59 -0800 Subject: [PATCH 5/5] copmmit to main --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index b369cf0..cc8cb23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ + FROM golang:1.14.7 MAINTAINER GitHub, Inc.