Skip to content

Commit

Permalink
Added standardized workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 30, 2024
1 parent dbb115d commit 622a709
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions full-copy/go/.github/workflows/go-dep-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Go Dependency Submission
on:
workflow_dispatch:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
go-action-detection:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
proxy.golang.org:443
storage.googleapis.com:443
sum.golang.org:443
- name: Checkout Source
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ">= 1.22.1"
cache: true

- name: Run snapshot action
uses: actions/go-dependency-submission@a9f822c0eac4dba3cc95b971659dfbf3036d4bfb # v2.0.1
with:
# Required: Define the repo path to the go.mod file used by the
# build target
go-mod-path: go.mod

0 comments on commit 622a709

Please sign in to comment.