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

upgrade docker #1

Closed
wants to merge 188 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
b95064e
Less dependencies (#37)
shizhMSFT Oct 25, 2021
48e5307
target interface (#66)
shizhMSFT Nov 17, 2021
a8cb812
create nested module (#65)
shizhMSFT Nov 17, 2021
e0b7b9b
Upgraded containerd and OCI spec versions (#71)
mnltejaswini Nov 18, 2021
66272f3
Fixed examples to use the new versions of containerd and OCI image sp…
mnltejaswini Nov 18, 2021
3db5095
Remove version warning (#74)
scottrigby Nov 19, 2021
f7acce2
Add clarification about project status (#75)
jdolitsky Nov 19, 2021
8b6a763
bump up to v2 (#77)
shizhMSFT Nov 23, 2021
1af8b33
Copy API (#67)
shizhMSFT Dec 1, 2021
99e2fde
Registry Interface (#81)
shizhMSFT Dec 6, 2021
c76aec5
Registry Client (#82)
shizhMSFT Dec 15, 2021
ec31af0
Memory Target (#80)
shizhMSFT Dec 24, 2021
4a2d507
Registry Auth Client (#85)
shizhMSFT Dec 24, 2021
075de65
Fixed registry client token (#87)
sabre1041 Dec 30, 2021
3a35b48
Corrected auth scope repository (#88)
sabre1041 Jan 5, 2022
6ca0861
fix error handling (#98)
shizhMSFT Jan 21, 2022
97cf20b
Revise scope hints for push (#100)
shizhMSFT Jan 21, 2022
b9d57ae
Fix pushing to private registries (#101)
shizhMSFT Jan 21, 2022
6dfff48
Update Makefile and scripts (#104)
shizhMSFT Jan 21, 2022
24c5637
OCI Target (#86)
Wwwsylvia Jan 24, 2022
9f47b50
Add oras.Pack (#114)
Wwwsylvia Mar 15, 2022
3467c4d
fix memory graph (#115)
Wwwsylvia Mar 16, 2022
90fab5e
Fix godoc output and add package overviews (#116)
sajayantony Mar 17, 2022
6588790
Add example for listing repositories in registry target (#117)
qweeah Mar 25, 2022
dd7d79f
fix OCI root (#125)
Wwwsylvia Mar 29, 2022
49bd44c
Add example for copying (#121)
qweeah Apr 1, 2022
6c9a83f
Add FetchReference() for Repository Target (#124)
Wwwsylvia Apr 5, 2022
db4a48e
File Target (#118)
Wwwsylvia Apr 11, 2022
c34895e
Add examples for repository push, pull, resolve and tags (#119)
qweeah Apr 15, 2022
c4a672a
add sylvia to owners (#127)
shizhMSFT Apr 18, 2022
ed1a257
Extended Copy (#130)
Wwwsylvia Apr 27, 2022
52eccf5
Update godoc badge (#139)
shizhMSFT May 9, 2022
31f7572
added basic range header handling (#145)
wangxiaoxuan273 May 16, 2022
23cb9e0
const media types (#152)
shizhMSFT May 24, 2022
bb7caa7
Merge build workflows and badges (#156)
shizhMSFT May 26, 2022
4a8cb1e
Review Guide (#133)
shizhMSFT May 27, 2022
3419eca
Add CodeQL Security Scanning (#105)
caniszczyk Jun 7, 2022
5b0f92b
Upgrade to CodeQL v2 (#165)
shizhMSFT Jun 8, 2022
91498b2
refactor code and add more tests (#169)
shizhMSFT Jun 14, 2022
4ed4d30
Copy Options (#150)
Wwwsylvia Jun 15, 2022
319a41f
Renaming UpEdges/DownEdges to Predecessors/Successors (#176)
Wwwsylvia Jun 16, 2022
8b2a546
Add example links in README (#183)
Wwwsylvia Jun 20, 2022
1442208
created an example of pushing reference manifest (#172)
wangxiaoxuan273 Jun 21, 2022
9fc0061
Support FindSuccessors option (#190)
Wwwsylvia Jun 22, 2022
b2ab067
Add migration guide (#192)
Wwwsylvia Jun 23, 2022
2210572
remove v1 implementation (#179)
Wwwsylvia Jun 23, 2022
c7bac50
fixed issue 177 (#186)
patrickzheng200 Jun 24, 2022
bae2e53
Update godoc link to main branch (#198)
Wwwsylvia Jun 24, 2022
1dd04ab
migrate REVIEWING.md from ORAS-go to community (#194)
Jun 24, 2022
4728b03
Update Referrers API to match RC.1 (#191)
m5i-work Jun 27, 2022
5b010da
Clean up (#212)
shizhMSFT Jun 28, 2022
2dd719e
Filter referrers by artifact type (#211)
m5i-work Jun 29, 2022
3f83f0c
examples for the auth module (#182)
wangxiaoxuan273 Jun 29, 2022
f374929
Add auth examples in README (#216)
Wwwsylvia Jun 30, 2022
d01cb66
Support last parameter for listing catalog and tags (#217)
patrickzheng200 Jul 1, 2022
1342e80
Update artifact spec to v1.0.0-rc.1 (#222)
Wwwsylvia Jul 1, 2022
5ebce53
added a refresh token example (#219)
wangxiaoxuan273 Jul 5, 2022
012efe8
Implement client feature for Discovery API (#214)
m5i-work Jul 5, 2022
b95da96
Check ORAS-Api-Version for referrers API (#227)
m5i-work Jul 6, 2022
8d8aa55
Add PackArtifact (#223)
Wwwsylvia Jul 6, 2022
cccb1f6
Skip version checking for pre-RC1 endpoint (#229)
m5i-work Jul 7, 2022
a033de4
Added Tag function to oras/registry.go (#226)
patrickzheng200 Jul 7, 2022
a013ccc
Use annotation constant from artifact-spec (#231)
m5i-work Jul 7, 2022
4660638
added one example for downloading artifact reference manifest (#173)
wangxiaoxuan273 Jul 7, 2022
b898737
Bug: oras.Copy() may skip tagging if manifest blob already exists in …
m5i-work Jul 20, 2022
2054bc5
Added an example of pulling the blobs of an ORAS artifact manifest (#…
wangxiaoxuan273 Jul 21, 2022
6c67e64
added an example of copying artifact manifest (#241)
wangxiaoxuan273 Jul 21, 2022
97a9c43
moved ReadAll and related functions to package Content (#245)
wangxiaoxuan273 Jul 22, 2022
248de1a
update artifact-spec to rc2 (#251)
Wwwsylvia Jul 26, 2022
064752f
Reuse post token for put when pushing blobs (#253)
qweeah Jul 26, 2022
eb13fdf
Migrate to codecov.io (#247)
junczhu Jul 27, 2022
da314f8
replaced io.ReadAll with content.ReadAll in examples (#255)
wangxiaoxuan273 Jul 28, 2022
6a09a65
Added an example of using ExtendedCopy (#248)
wangxiaoxuan273 Aug 2, 2022
5115985
Failed to download all the files in an artifact using oras.Copy() (#256)
m5i-work Aug 4, 2022
fda65b9
fix: Fix runnable examples (#257)
lizMSFT Aug 4, 2022
e135557
Allow skipping unnamed blobs when pushing to file store (#254)
m5i-work Aug 4, 2022
069da31
Empty config (#262)
m5i-work Aug 5, 2022
bdbf6a9
support filtering on annotation with regex (#259)
wangxiaoxuan273 Aug 5, 2022
588379d
fix: fix typo in example test (#263)
lizMSFT Aug 8, 2022
e24e247
feat: Support platform selection on Copy (#244)
lizMSFT Aug 8, 2022
45a30bb
added filtering by artifact type with regex (#258)
wangxiaoxuan273 Aug 10, 2022
c76df08
fix: added manifest parsing when annotation is not in the descriptor …
wangxiaoxuan273 Aug 11, 2022
1c2d196
updated support window (#270)
wangxiaoxuan273 Aug 17, 2022
53ee89a
refactor: Small refactor of reference module and tests (#279)
nima Aug 25, 2022
98e72a2
fix: oras pull error `empty response Docker-Content-Digest` (#237)
nima Aug 25, 2022
2946dfc
refactor!: add read-only interfaces (#283)
Wwwsylvia Aug 29, 2022
2ae35d3
feat: add utility methods for creating and comparing OCI descriptors …
wangxiaoxuan273 Sep 1, 2022
59befb3
fix: remove `+json` encoding from the default config media type (#288)
Wwwsylvia Sep 1, 2022
ccd61e9
feat!: support `oras.Fetch` and `oras.FetchBytes` (#282)
Wwwsylvia Sep 1, 2022
295b1c3
feat: add a utility method for specifying static credentials (#280)
wangxiaoxuan273 Sep 1, 2022
880b84b
refactor: improve error message on platform mismatch in order to dist…
lizMSFT Sep 2, 2022
6d3ce22
feat: Support `oras.PushBytes` and `oras.TagBytes` (#293)
Wwwsylvia Sep 2, 2022
faf6320
fix: Revert "Upload empty blob when packing" (#295)
Wwwsylvia Sep 5, 2022
e3e46b0
Revert "fix: remove `+json` encoding from the default config media ty…
Wwwsylvia Sep 5, 2022
ce0ab20
use a default value when Concurrency is not specified (#296)
Wwwsylvia Sep 5, 2022
e413b92
feat!: Support specifying `MaxMetadataBytes` option for `oras.Resolve…
Wwwsylvia Sep 5, 2022
9a92908
feat: `Repository.Manifest()` now returns a `ManifestStore` (#300)
Wwwsylvia Sep 6, 2022
d9a8f82
feat!: support `oras.TagN` (#301)
Wwwsylvia Sep 7, 2022
a018d99
feat: implement ReferenceParser for manifestStore (#305)
Wwwsylvia Sep 7, 2022
21d6ed0
test: add interface tests for Repository, blobStore and manifestStore…
wangxiaoxuan273 Sep 13, 2022
964d87f
fix: add missing license headers (#315)
jasminetMSFT Sep 14, 2022
524c614
build: license header check in github workflows (#316)
jasminetMSFT Sep 14, 2022
34e7e6f
feat: add read and verify utility method (#324)
wangxiaoxuan273 Sep 21, 2022
8ad5a24
fix: fix data race in TagBytesN unit test (#329)
Wwwsylvia Sep 21, 2022
2b4088e
fix: improve oras manifest fetch --platform error message (#330)
lizMSFT Sep 22, 2022
bedc4c4
fix: fix 404 error message for `manifestStore.FetchReference` (#331)
Wwwsylvia Sep 22, 2022
3f9653f
fix: add nil checks for some functions (#327)
jasminetMSFT Sep 22, 2022
c1f42a4
feat!: support OCI artifact manifest with descriptor migration (#334)
Wwwsylvia Sep 28, 2022
56c9619
fix: Scrutinize references for digests posing as tags (#326)
nima Sep 30, 2022
38b39d3
refactor: optimize extended copy filters (#335)
Wwwsylvia Sep 30, 2022
9945bfb
Update image-spec to v1.1.0-rc2 (#339)
sajayantony Oct 5, 2022
5416ed6
refactor: update implementation of `Referrers` API (#340)
Wwwsylvia Oct 17, 2022
1969551
refactor!: merge `oras.PackArtifact()` into `oras.Pack()` (#343)
Wwwsylvia Oct 18, 2022
05fb30a
feat: index referrers on manifest push (#348)
Wwwsylvia Oct 27, 2022
aed5c43
feat: index referrers on manifest delete (#350)
Wwwsylvia Oct 28, 2022
7ab862c
feat: include error code in error response (#352)
Wwwsylvia Oct 28, 2022
f701e60
refactor: refactor functions related to querying referrers (#353)
Wwwsylvia Oct 31, 2022
7ee86b9
feat!: add `ReferrerFinder` to `Repository` interface (#357)
shizhMSFT Nov 9, 2022
9e5b141
fix: fix potential deadlock in `oras.Copy` (#359)
Wwwsylvia Nov 9, 2022
74eeb52
doc: revise doc of `registry.Reference` (#358)
nima Nov 11, 2022
621970f
perf: improve the performance of using referrers tag schema (#360)
Wwwsylvia Nov 17, 2022
f09c857
doc: fix testable example name (#365)
Wwwsylvia Nov 22, 2022
511e4d4
fix: avoid copying Repository mutex state (#364)
abursavich Nov 30, 2022
7dcd097
fix: attempt range query only if server explicitly supports (#369)
shizhMSFT Dec 2, 2022
ff05195
doc: make the default options displayed next to the option type on go…
Wwwsylvia Dec 5, 2022
a5be49a
fix: avoid panic from releasing unacquired semaphore (#363)
abursavich Dec 6, 2022
275b940
refactor!: update the type of `Concurrency` options to `int` (#376)
Wwwsylvia Dec 7, 2022
253d5ec
fix: allow chunked responses via HEAD request fallback (#370)
AaronFriel Dec 7, 2022
04d11f9
feat: support creating read-only OCI store from `fs.FS` (#367)
Wwwsylvia Dec 8, 2022
0382be2
feat: support reading OCI layout from tarballs (#379)
Wwwsylvia Dec 8, 2022
8500e54
feat: change foreign layer error message at repository.Fetch() (#377)
wangxiaoxuan273 Dec 8, 2022
79e13bc
feat: skip foreign layers on `oras.Copy` (#380)
shizhMSFT Dec 9, 2022
4b1d016
fix: use proxy when copying node with successors (#384)
qweeah Dec 12, 2022
4e58192
refactor: refactor OCI store to fully support `Predecessors()` and `R…
Wwwsylvia Dec 12, 2022
258bfba
fix: add error detail to resolve failure (#390)
qweeah Dec 21, 2022
31299c3
fix!: `Tag()` and `TagN()` return a descriptor (#396)
shizhMSFT Jan 6, 2023
7ec22cb
feat!: implement `Tags` for package `content/oci` (#394)
shizhMSFT Jan 9, 2023
aa4bd09
refactor: optimize performance for Extended Copy (#397)
Wwwsylvia Jan 11, 2023
2950902
remove!: Remove `file.PackFiles()` and add an example instead (#400)
Wwwsylvia Jan 12, 2023
76382aa
doc: Remove @main from the godoc URLs in README (#403)
Wwwsylvia Jan 13, 2023
1484139
build: add dependabot for `v1` branch, add GitHub Actions (#399)
lucacome Jan 13, 2023
9867c6a
fix!: fix error when extracting folder containing symbolic links (#411)
Wwwsylvia Jan 16, 2023
05595eb
fix!: use absolute path for OCI root (#412)
Wwwsylvia Jan 17, 2023
39ce054
test: improve the symlink unit tests for file store (#414)
Wwwsylvia Jan 17, 2023
5a2e692
feat!: retryable http client (#398)
souleb Jan 17, 2023
96a37c2
doc: Update README and clean up godoc comments (#418)
Wwwsylvia Jan 18, 2023
4a09c4d
fix: Broken tests for mac (#431)
TerryHowe Feb 7, 2023
f194a1e
fix: broken go-sdk link in readme (#438)
khanjasir90 Feb 11, 2023
d54f32b
feat: update go support window to [1.19, 1.20] (#442)
asmitbm Feb 13, 2023
a91c1a6
chore: add CODEOWNERS based on OWNERS.md (#444)
shizhMSFT Feb 15, 2023
31c574b
fix: fix CODEOWNERS (#446)
shizhMSFT Feb 16, 2023
216f081
fix: ensure `index.json` for oci store (#450)
Wwwsylvia Feb 24, 2023
0c6633b
chore: update owners (#459)
shizhMSFT Mar 14, 2023
336b9fb
fix: refactor tagging implementation for OCI Store (#462)
Wwwsylvia Mar 17, 2023
97a80e5
build(deps): bump actions/setup-go from 3 to 4 (#464)
dependabot[bot] Mar 17, 2023
c1bf59e
chore: add .cover to ignore (#463)
TerryHowe Mar 20, 2023
e8225cb
fix: OCI store resolve returns full descriptor (#468)
oanatmaria Mar 23, 2023
b74a2a1
feat: add type for failure during deleting dangling referrer index (#…
qweeah Apr 27, 2023
264f5f2
doc: fix broken links for ORAS logo and oras-go doc (#490)
FeynmanZhou Apr 27, 2023
8aed964
build: upgrade image-spec to v1.1.0-rc.3 (#496)
shizhMSFT May 4, 2023
49b8f8f
build(deps): bump golang.org/x/sync from 0.1.0 to 0.2.0 (#498)
dependabot[bot] May 5, 2023
c083b73
feat(registry/remote): implement `Mount` (#500)
rogpeppe May 8, 2023
0e20275
fix: add special handling for "docker.io" in `StaticCredential()` (#504)
Wwwsylvia May 10, 2023
7dd0378
feat: add option to skip referrers GC (#515)
qweeah May 31, 2023
b4400e1
build(deps): bump golang.org/x/sync from 0.2.0 to 0.3.0 (#524)
dependabot[bot] Jun 25, 2023
2e7b65f
fix(oci): create blobs dir and define blobs dir name constant (#520)
sparr Jun 25, 2023
6b5bd4b
fix: improve errors for `ReadAll` and `loadIndexfile` (#526)
sparr Jun 27, 2023
4763cd4
refactor: upgrade go mod to `image-spec v1.1.0-rc4` and fix the missi…
Wwwsylvia Jul 3, 2023
babfc51
chore: enable workflows for release branches (#537)
Wwwsylvia Jul 4, 2023
f0a9c59
feat: support Image Index with a subject (#548)
Wwwsylvia Jul 12, 2023
9b52269
feat: add a PackOption to support packing image manifests that confor…
Wwwsylvia Jul 21, 2023
2c23ef6
feat: update Referrers API for distribution-spec v1.1.0-rc3 (#553)
Wwwsylvia Jul 25, 2023
79d7081
feat: update the implementation of pushing manifest for distribution-…
Wwwsylvia Jul 26, 2023
6ec43e7
feat: update the implementation of deleting manifest for distribution…
Wwwsylvia Jul 27, 2023
3a2e0c1
docs: update links (#563)
Wwwsylvia Aug 2, 2023
b59a33e
feat: report warnings (#560)
Wwwsylvia Aug 2, 2023
d5cefe9
docs: add e2e examples for oras-go (#561)
wangxiaoxuan273 Aug 4, 2023
933ae41
docs: display larger example (#564)
wangxiaoxuan273 Aug 7, 2023
bbe92af
fix: pack should not set `artifactType` when config is specified (#565)
Wwwsylvia Aug 7, 2023
ea07bf6
build(deps): bump apache/skywalking-eyes from 0.4.0 to 0.5.0 (#569)
dependabot[bot] Aug 21, 2023
e6d40b6
refactor: add `PackManifest` and deprecate `Pack` (#570)
Wwwsylvia Aug 22, 2023
60da91b
refactor: refactor unexported pack methods (#573)
Wwwsylvia Aug 24, 2023
47d028a
feat: validate input media type for `oras.PackManifest ` (#574)
Wwwsylvia Aug 24, 2023
0582b77
Add SECURITY.md file (#579)
TerryHowe Aug 29, 2023
92eb05c
build(deps): bump actions/checkout from 3 to 4 (#585)
dependabot[bot] Sep 5, 2023
4a52cfd
build: bump go version (#587)
Wwwsylvia Sep 5, 2023
c130949
feat: merge package `credentials` back from `oras-credentials-go` (#589)
Wwwsylvia Sep 8, 2023
577bffe
fix: push an empty index when deleting the last referrer with SkipRef…
Wwwsylvia Sep 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

coverage:
status:
project:
default:
target: 70%
if_ci_failed: error
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

version: 2

updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# update go dependencies for v1 branch
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
target-branch: "v1"
43 changes: 43 additions & 0 deletions .github/licenserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

header:
license:
spdx-id: Apache-2.0
content: |
Copyright The ORAS Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

paths-ignore:
- '**/*.md'
- 'CODEOWNERS'
- 'LICENSE'
- 'go.mod'
- 'go.sum'
- '**/testdata/**'

comment: on-failure

dependency:
files:
- go.mod
29 changes: 0 additions & 29 deletions .github/workflows/build-pr.yml

This file was deleted.

48 changes: 32 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,44 @@
# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: build

on:
push:
branches: main
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.20', '1.21']
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup go environment
uses: actions/setup-go@v1
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }} environment
uses: actions/setup-go@v4
with:
go-version: '1.16.4'
- name: run unit tests
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Run unit tests
run: make test
- name: run acceptance tests
run: |
export LOCAL_REGISTRY_HOSTNAME="$(hostname -I | awk '{print $1}')"
make acceptance
- name: upload coverage report
uses: actions/upload-artifact@master
with:
name: oras-coverage-report-${{ github.sha }}
path: .cover/
if: always()
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
53 changes: 53 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: CodeQL

on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*
schedule:
- cron: '34 13 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
matrix:
go-version: ['1.20', '1.21']
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }} environment
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
44 changes: 44 additions & 0 deletions .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: License Checker

on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*

permissions:
contents: write
pull-requests: write

jobs:
check-license:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check license header
uses: apache/skywalking-eyes/header@v0.5.0
with:
mode: check
config: .github/licenserc.yml
- name: Check dependencies license
uses: apache/skywalking-eyes/dependency@v0.5.0
with:
config: .github/licenserc.yml
18 changes: 15 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Binaries for programs and plugins
*.exe
*.exe~
Expand All @@ -19,11 +32,10 @@ debug
.idea

# Custom
.cover/
.test/
hello.txt
coverage.txt
bin/
dist/
*.tar.gz
vendor/
_dist/
.cover
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Derived from OWNERS.md
* @sajayantony @shizhMSFT @stevelasker @Wwwsylvia