Skip to content

Commit

Permalink
Enhance security of actions (NeuralEnsemble#565)
Browse files Browse the repository at this point in the history
* Added explcit SHA link to mirroring action for added security

* Added explicit SHA link to CI action for added security

* Added explicit additional cross link to tag as comment
  • Loading branch information
mdenker committed May 24, 2023
1 parent 471bf0f commit c7b5814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{hashFiles('requirements/environment.yml') }}-${{ hashFiles('**/CI.yml') }}-${{ steps.date.outputs.date }}

- uses: conda-incubator/setup-miniconda@v2.2.0
- uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3 # corresponds to v2.2.0
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ebrains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
if: ${{ github.repository_owner == 'NeuralEnsemble' }}
steps:
- name: syncmaster
uses: wei/git-sync@v3
uses: wei/git-sync@55c6b63b4f21607da0e9877ca9b4d11a29fc6d83 # corresponds to v3
with:
source_repo: "NeuralEnsemble/elephant"
source_branch: "master"
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/neuralensemble/elephant.git"
destination_branch: "master"

- name: synctags
uses: wei/git-sync@v3
uses: wei/git-sync@55c6b63b4f21607da0e9877ca9b4d11a29fc6d83 # corresponds to v3
with:
source_repo: "NeuralEnsemble/elephant"
source_branch: "refs/tags/*"
Expand Down

0 comments on commit c7b5814

Please sign in to comment.